-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
PostGraphQL V4 - announcing graphile-build #506
Merged
Merged
Changes from 5 commits
Commits
Show all changes
146 commits
Select commit
Hold shift + click to select a range
21ba9d5
Schema generation provided by postgraphql-build
benjie a0c4a13
Bump version for major performance and compatibility improvements
benjie aebcff3
Bump postgraphql-build version for Node sub-8 support
benjie fc8b963
Bump version for __id support
benjie 1b504ed
Accept non-array schemas
benjie 1a14923
Upgrade to fix issue with procs returning null compound types
benjie 4cfb64a
Allow null in PG arrays
benjie f68f572
Install babel-polyfill
benjie ab8bb6a
Switch to yarn
benjie 3da18c6
Delete unused
benjie b1caa0f
Disable test that hangs due to massive diff
benjie ba561aa
Upgrade postgraphql-build for better comments
benjie 3528522
Update postgraphql-build to avoid error on mutation edges
benjie f20e013
Restore watching functionality
benjie bace492
JWT support
benjie bc6dc8a
Update createPostGraphQLSchema references
benjie 854187c
'Fix' the tests
benjie 5baad0e
Resolve mocking issues
benjie 9b77170
Merge branch 'master' into benjie/graphql-build
benjie 5c60b12
Domain support
benjie 36f9efe
Merge branch 'master' into benjie/graphql-build
benjie 2b4a344
Lots of compatibility fixes
benjie 7e5b2df
Update graphql-build for many more descriptions
benjie bdae04b
Update graphql-build for many more descriptions
benjie ae99a03
Update graphql-build for more tweaks
benjie 0df4bf7
Fix functions returning arrays
benjie 899c74e
Moar descriptions
benjie 4388f1c
Acceptable schema changes
benjie d1de4cf
Upgrade for a few more tweaks
benjie 9abec13
Update the schema export test
benjie e65b6f8
Lint fixes
benjie 5091e50
Fix TypeScript types
benjie 62d7dcc
Install lodash peerDependency of postgraphql-build
benjie 105d21a
Sort out dependencies
benjie dd72183
Switch CI script over to yarn
benjie a67f7d0
Fix case-sensitivity
benjie fc958a2
Upgrade for Node4 compat
benjie d6d90d7
CI: add yarn to cache, node 8 tests
benjie 216a54d
Bump version to avoid yarn engine issue
benjie 7730f91
Bump version number
benjie 9b48f76
Don't crash on empty mutations
benjie 97c9789
Rename various internals
benjie 4b9fd17
Minor bump
benjie a522cfe
Upgrade so we can pass plugins to postgraphql-build
benjie 80fccd9
Add CLI support for loading modules
benjie 2567220
Switch to comma separated list due to tool restrictions
benjie 7649a7b
Linting
benjie ede6ca7
Even smaller bundle
benjie 8ade82a
Use prepack over prepublishOnly for pack/publish
benjie baeb56a
Try and solve babel-polyfill issue
benjie 74855ba
Version bump for setting plugins
benjie 4aea305
Remove need for babel-polyfill
benjie 453aaca
Restore underscores to field names
benjie 1417bc3
Version bump
benjie bdfddfc
Upgrade to Flow-ified version of graphql-build
benjie 354df59
Bump version
benjie 75243b5
Fix typo
benjie 53e0491
Upgrade postgraphql-build
benjie c3eff1a
Bump version
benjie 468ffff
Drop Node v6 from tests (just 4 and 8 should cover it)
benjie 768fcc9
Bump
benjie e30e531
Upgrade graphql-build
benjie 528932c
Mutation computation fix, module rename, bump
benjie 061407f
Version bump to solve description='false'
benjie 72cdeee
Update postgraphile-core to remove temp tables
benjie 7055dc1
Upgrade postgraphile-core
benjie 644f49d
Version bump
benjie c1c1f08
Upgrade postgraphile-core
benjie 9061130
Merge branch 'master' into benjie/graphql-build
benjie bebb251
pg-minify is updated
benjie 6f134d7
4.0.0-alpha2.6
benjie e2cb680
Upgrade postgraphile-core: enum capitalisation
benjie ab26b14
Upgrade postgraphile-core: solve JWT issues
benjie 2c80a18
Version bump
benjie 97b86b9
Upgrade postgraphile-core: remove extraneous nodeIds
benjie 4fc0872
4.0.0-alpha2.9
benjie 5a3b6d8
Fix tests
benjie ce7fb97
Deprecate --token in favour of --jwt-token-identifier
benjie 5979eaf
Upgrade postgraphile-core - computed column fixes
benjie 68db8ed
Bump postgraphile-core - fix typo
benjie b8a8cc8
Bump
benjie 9b65130
Merge branch 'master' into benjie/graphql-build
benjie 2a3498e
Fix issue with mutations
benjie b50fcff
Upgrade postgraphile-core - nullable relations
benjie 4cc3ed0
Fix test snapshots
benjie 2bc04bb
Upgrade postgraphile-core - fix reverse pagination setof procedure bug
benjie d2a9def
Don't clear the schema because it clears state
benjie af8cbc4
postgraphile-core bump
benjie b507e04
Version bump
benjie 8e6a511
Upgrade postgraphile-core - fix procedures returning setof composite
benjie 9742331
Upgrade postgraphile-core: allow overriding inflector
benjie 0d1c04b
Upgrade postgraphile-core - fix UUID with --dynamic-json
benjie a1661b0
Upgrade postgraphile-core: namespace tweaks
benjie 73be58f
Bump postgraphile-core
benjie 49f7a56
Version bump
benjie 7ca565e
Mutation payloads are nullable again
benjie 689fada
Update README
benjie cfd6237
Merge branch 'master' into benjie/graphql-build
benjie 51643bd
Upgrade postgraphile-core
benjie 5526c2c
feat(postgraphql): Provide mechanism to add data to resolver context …
alexFaunt e8b0a1d
4.0.0-alpha2.21
benjie 27d1e1e
Merge branch 'master' into benjie/graphql-build
benjie 7a69eb2
feat(pgSettings): Only use settings of type string or number (#589)
ac0f4c9
Upgrade postgraphile-core: fix arrays of compound types
benjie 4bf5871
4.0.0-alpha2.22
benjie 3c6e3e7
Merge branch 'master' into benjie/graphql-build
benjie 1b13809
v4.0.0-alpha2.23
benjie 1f11dea
Merge branch 'master' into benjie/graphql-build
benjie 20bd36e
v4.0.0-alpha2.24
benjie f72df0d
Merge branch 'master' into benjie/graphql-build
benjie 9ac624d
Merge branch 'master' into benjie/graphql-build
benjie 024da2a
v4.0.0-alpha2.25
benjie 4af0238
Merge branch 'master' into benjie/graphql-build
benjie f15360d
Upgrade postgraphile-core
benjie 865829b
Update tests for arbitrary precision types
benjie e5a15b6
v4.0.0-alpha2.26
benjie f6f252b
Merge branch 'master' into benjie/graphql-build
benjie a0e9f25
Upgrade postgraphile-core
benjie 12846cb
Update snapshots
benjie 0e572f0
v4.0.0-alpha2.27
benjie 1fa4310
feat(additionalGraphQLContextFromRequest): add res to callback (#652)
benjie 6a7d654
Merge branch 'master' into benjie/graphql-build
benjie 5d9feab
Upgrade postgraphile-core
benjie d68e9cc
Add readCache/writeCache CLI options
benjie cf7a3c3
4.0.0-alpha2.28
benjie 97a1ecf
Merge branch 'master' into benjie/graphql-build
benjie a37c59f
4.0.0-alpha2.29
benjie 8acd3c3
Merge branch 'master' into benjie/graphql-build
benjie 1c84813
Pin to GraphQL v0.11 due to graphql/graphql-js#1182
benjie 660d3fb
Downgrade GraphQL to v0.11 due to graphql/graphql-js#1182
benjie 6f91793
4.0.0-alpha2.30
benjie 08133a5
Merge branch 'master' into benjie/graphql-build
benjie 275267d
Widen pg supported range: >=6.1 <8
benjie 7641a26
Upgrade postgraphile-core
benjie 4582135
Update snapshots - fix cursors and array orderBy
benjie f5e19ba
4.0.0-alpha2.31
benjie 2391185
Duck-type pg.Pool
benjie cfa4b74
Merge branch 'master' into benjie/graphql-build
benjie 3035edc
fix space-before-function-paren
caub 1cdc0d0
feat(postgraphile) Add support for putting options in .postgraphilerc.js
00bc27c
feat(postgraphql) Add support for declaring connection string via DAT…
acb594e
feat(postgraphql): support PGUSER and PGPASSWORD environment variable…
95a60ee
Upgrade postgraphile-core to remove joi
benjie 7d29878
4.0.0-alpha2.32
benjie 9d05288
Allow BoundPool as a Pool name also
benjie cdafe55
4.0.0-alpha2.33
benjie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM node:alpine | ||
LABEL description="A GraphQL API created by reflection over a PostgreSQL schmea https://github.com/postgraphql/postgraphql" | ||
|
||
# alpine linux standard doesn't include bash, and postgraphql scripts have #! bash | ||
RUN apk add --update bash && rm -rf /var/cache/apk/* | ||
|
||
RUN mkdir -p /postgraphql | ||
WORKDIR /postgraphql | ||
|
||
COPY . /postgraphql | ||
|
||
RUN npm install | ||
RUN scripts/build | ||
RUN npm pack | ||
RUN npm install -g postgraphql-*.tgz | ||
|
||
RUN rm -rf /postgraphql | ||
EXPOSE 5000 | ||
ENTRYPOINT ["postgraphql", "-n", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const { GraphQLSchema, GraphQLObjectType, GraphQLInt } = require('graphql'); | ||
|
||
const dummySchema = new GraphQLSchema({ | ||
query: new GraphQLObjectType({ | ||
name: 'MockSchemaQuery', | ||
fields: { | ||
foo: { | ||
type: GraphQLInt, | ||
} | ||
} | ||
}) | ||
}) | ||
|
||
module.exports = { | ||
createPostGraphQLSchema: jest.fn(async (a, b, c) => dummySchema), | ||
watchPostGraphQLSchema: jest.fn(async (a, b, c, cb) => cb(dummySchema)), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/postgraphql/__tests__/postgraphqlIntegrationMutations-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/postgraphql/__tests__/postgraphqlIntegrationQueries-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/postgraphql/__tests__/postgraphqlIntegrationSchema-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/postgraphql/__tests__/postgraphqlIntegrationSchemaExport-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't
POSTGRES_SCHEMA
bePOSTGRES_DATABASE
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup