Skip to content

Commit

Permalink
feat(deps): upgrade postgraphile-core (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jun 25, 2018
1 parent bd27e57 commit aea0add
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"pg": ">=6.1.0 <8",
"pg-connection-string": "^0.1.3",
"pg-sql2": "2.1.0",
"postgraphile-core": "4.0.0-rc.1",
"postgraphile-core": "4.0.0-rc.2",
"send": "^0.16.1",
"tslib": "^1.5.0"
},
Expand Down
6 changes: 6 additions & 0 deletions src/postgraphile/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ program
.option('-a, --classic-ids', 'use classic global id field name. required to support Relay 1')
.option('-M, --disable-default-mutations', 'disable default mutations, mutation will only be possible through Postgres functions')
.option('--simple-collections [omit|both|only]', '"omit" (default) - relay connections only, "only" - simple collections only (no Relay connections), "both" - both')
.option('--ignore-rbac', 'by default, PostGraphile excludes fields, queries and mutations that the user isn\'t permitted to access; use this flag to skip these checks and expose everything')
.option('--include-extension-resources', 'by default, tables and functions that come from extensions are excluded; use this flag to include them')

pluginHook('cli:flags:add:schema', addFlag)

Expand Down Expand Up @@ -218,6 +220,8 @@ const {
classicIds = false,
dynamicJson = false,
disableDefaultMutations = false,
ignoreRbac = false,
includeExtensionResources = false,
exportSchemaJson: exportJsonSchemaPath,
exportSchemaGraphql: exportGqlSchemaPath,
showErrorStack,
Expand Down Expand Up @@ -344,6 +348,8 @@ const postgraphileOptions = pluginHook('cli:library:options', Object.assign({},
classicIds,
dynamicJson,
disableDefaultMutations,
ignoreRBAC: ignoreRbac,
includeExtensionResources,
graphqlRoute,
graphiqlRoute,
graphiql: !disableGraphiql,
Expand Down
11 changes: 11 additions & 0 deletions src/postgraphile/postgraphile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ export type PostGraphileOptions = {
// types & fields. Database mutation will only be possible through Postgres
// functions.
disableDefaultMutations?: boolean,
// By default, PostGraphile excludes fields, queries and mutations that the
// user isn't permitted to access; set this option true to skip these checks
// and expose everything.
ignoreRBAC?: boolean,
// By default, tables and functions that come from extensions are excluded
// from the generated GraphQL schema as general applications don't need them
// to be exposed to the end user. You can use this flag to include them in
// the generated schema. It's recommended that you expose a schema other than
// `public` so that the schema is not polluted with extension resources
// anyway.
includeExtensionResources?: boolean,
// Enables adding a `stack` field to the error response. Can be either the
// boolean `true` (which results in a single stack string) or the string
// `json` (which causes the stack to become an array with elements for each
Expand Down
32 changes: 16 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3306,26 +3306,26 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
version "1.0.1"
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"

graphile-build-pg@4.0.0-rc.1:
version "4.0.0-rc.1"
resolved "https://registry.yarnpkg.com/graphile-build-pg/-/graphile-build-pg-4.0.0-rc.1.tgz#178b6389b5dfe8d1793d5a3f16ce5ca7bb567d98"
graphile-build-pg@4.0.0-rc.2:
version "4.0.0-rc.2"
resolved "https://registry.yarnpkg.com/graphile-build-pg/-/graphile-build-pg-4.0.0-rc.2.tgz#6592ef289197324f32087a65bb28558280935f3f"
dependencies:
chalk "^2.1.0"
debug ">=2 <3"
graphile-build "4.0.0-rc.1"
graphile-build "4.0.0-rc.2"
graphql-iso-date "^3.2.0"
jsonwebtoken "^8.1.1"
lodash ">=4 <5"
lru-cache "4.1.1"
pg-sql2 "2.1.0"
postgres-interval "1.1.1"

graphile-build@4.0.0-rc.1:
version "4.0.0-rc.1"
resolved "https://registry.yarnpkg.com/graphile-build/-/graphile-build-4.0.0-rc.1.tgz#c6037491498fd498b129c3b1053ced9d6cc5bd3f"
graphile-build@4.0.0-rc.2:
version "4.0.0-rc.2"
resolved "https://registry.yarnpkg.com/graphile-build/-/graphile-build-4.0.0-rc.2.tgz#8b677d888944380ba19b0acae895051f0beda75d"
dependencies:
debug ">=2 <3"
graphql-parse-resolve-info "4.0.0-rc.1"
graphql-parse-resolve-info "4.0.0-rc.2"
lodash ">=4 <5"
pluralize "7.0.0"

Expand Down Expand Up @@ -3400,9 +3400,9 @@ graphql-language-service-utils@^1.1.0:
graphql-config "1.1.4"
graphql-language-service-types "^1.1.0"

graphql-parse-resolve-info@4.0.0-rc.1:
version "4.0.0-rc.1"
resolved "https://registry.yarnpkg.com/graphql-parse-resolve-info/-/graphql-parse-resolve-info-4.0.0-rc.1.tgz#66ce65d4ef004000c69f2c34e2b10dc7aab74e6e"
graphql-parse-resolve-info@4.0.0-rc.2:
version "4.0.0-rc.2"
resolved "https://registry.yarnpkg.com/graphql-parse-resolve-info/-/graphql-parse-resolve-info-4.0.0-rc.2.tgz#7e12e1c0ae84a8066154eb2b2696d31f431c4bee"
dependencies:
debug ">=2 <3"

Expand Down Expand Up @@ -6279,12 +6279,12 @@ postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.13:
source-map "^0.6.1"
supports-color "^5.3.0"

postgraphile-core@4.0.0-rc.1:
version "4.0.0-rc.1"
resolved "https://registry.yarnpkg.com/postgraphile-core/-/postgraphile-core-4.0.0-rc.1.tgz#b980ae3e658acaee760d465cfe1b727a465a3027"
postgraphile-core@4.0.0-rc.2:
version "4.0.0-rc.2"
resolved "https://registry.yarnpkg.com/postgraphile-core/-/postgraphile-core-4.0.0-rc.2.tgz#ef94831da04b406004b8691bb91b0480c4ed40cd"
dependencies:
graphile-build "4.0.0-rc.1"
graphile-build-pg "4.0.0-rc.1"
graphile-build "4.0.0-rc.2"
graphile-build-pg "4.0.0-rc.2"

postgres-array@~1.0.0:
version "1.0.2"
Expand Down

0 comments on commit aea0add

Please sign in to comment.