forked from VulcanJS/Vulcan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This PR enables you to query data on the server with a schema that does not match a database collection - for example an aggregation or an array of objects * PR for the documentation is [here](VulcanJS/vulcan-docs#169) * Added new function `registerCustomQuery()`, to add a custom GraphQL type generated from a schema object and a resolver to query the data * Added new function `registerCustomDefaultFragment()`, to generate a default fragment from the same schema * Updated `multi2` to be compatible with custom queries - you can now specify a `typeName` instead of a `collection` * Updated `createSchema()` to support [SimpleSchema Shorthand Definitions](https://github.com/aldeed/simpl-schema#shorthand-definitions) * Added `defaultCanRead` parameter to `createSchema()`
- Loading branch information
ErikDakoda
committed
Feb 11, 2021
1 parent
f330b1b
commit 37e6c40
Showing
5 changed files
with
242 additions
and
84 deletions.
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
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export * from './graphql'; | ||
export * from './typedefs'; | ||
export * from './registerCustomQuery'; | ||
export * from './schemaFields'; | ||
export * from './typedefs'; |
Oops, something went wrong.