8000 Feat: Build schema from prebuild PgCatalog by rentrop · Pull Request #306 · graphile/crystal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat: Build schema from prebuild PgCatalog #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 9, 2017
Merged

Feat: Build schema from prebuild PgCatalog #306

merged 5 commits into from
Jan 9, 2017

Conversation

rentrop
Copy link
Contributor
@rentrop rentrop commented Jan 9, 2017

This enables the usage of a prebuild PgCatalog e.g. on AWS Lambda (#301)

Copy link
Collaborator
@calebmer calebmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. It’s a small change, but I can easily see the benefit. I don’t think it needs tests, in this case the type system should be sufficient enough for our tests.

I just made one small change where I renamed the schema variable to schemaOrCatalog to more accurately reflect the type.

I won’t merge this yet so that other people get a chance to comment. I’ll probably publish it with #305

@rentrop
Copy link
Contributor Author
rentrop commented Jan 9, 2017

Sounds good to me.

Copy link
Member
@benjie benjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; for anyone else reviewing remember you can ignore whitespace with ?w=1, e.g.:

https://github.com/calebmer/postgraphql/pull/306/files?w=1

My only concern is that instanceof may fail under some circumstances (e.g. mis-matched versions?) and thus do weird things. Should we add an assert to ensure schemas is an array of strings? (I assume declaring it as such isn't sufficient.)

@calebmer calebmer merged commit 99d4bbe into graphile:master Jan 9, 2017
@rentrop rentrop deleted the create-schema-from-prebuilt-pgcatalog branch January 9, 2017 21:08
@benjie benjie mentioned this pull request Mar 30, 2017
Belline pushed a commit to Belline/postgraphql that referenced this pull request Dec 18, 2017
* Feat: Build schema from prebuild PgCatalog

This enables the usage of a prebuild PgCatalog e.g. on AWS Lambda
graphile#301

* Fixed linting

* rename to schemaOrCatalog to reflect type
benjie pushed a commit that referenced this pull request 7A57 Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0