-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Coobaha/1.0
Print all possible resolvers
- Loading branch information
Showing
36 changed files
with
21,629 additions
and
528 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ node_modules | |
_build | ||
_release | ||
_esy | ||
esy.lock | ||
*.log | ||
*.byte | ||
*.native | ||
|
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 |
---|---|---|
|
@@ -23,4 +23,4 @@ build_script: | |
- esy build | ||
|
||
test_script: | ||
- esy test | ||
- make test |
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,8 +1,12 @@ | ||
let query = | ||
SchemaTypes.Queries.t( | ||
~article=Articles.getByIdResolver, | ||
~articles=Articles.resolver, | ||
let resolvers: SchemaTypes.t = | ||
SchemaTypes.t( | ||
~query= | ||
SchemaTypes.Query.t( | ||
~article=Articles.getByIdResolver, | ||
~articles=Articles.resolver, | ||
(), | ||
), | ||
~mutation=SchemaTypes.Mutation.t(~addArticle=Articles.addArticle, ()), | ||
~comment=SchemaTypes.Comment.t(~content=Articles.Comments.content, ()), | ||
(), | ||
); | ||
|
||
let mutation = SchemaTypes.Mutations.t(~addArticle=Articles.addArticle, ()); |
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,7 +1,6 @@ | ||
include SchemaTypes_builder.MakeSchema({ | ||
module Scalars = {}; | ||
type resolver('args, 'fieldType, 'result) = | ||
(unit, 'args) => Js.Promise.t('result); | ||
type resolver('parent, 'args, 'fieldType, 'result) = | ||
('parent, 'args) => Js.Promise.t('result); | ||
type directiveResolver('payload); | ||
}); | ||
|
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,8 +1,3 @@ | ||
import { query, mutation } from './Resolvers.bs' | ||
|
||
const resolvers = { | ||
Query: query, | ||
Mutation: mutation, | ||
}; | ||
import { resolvers } from './Resolvers.bs' | ||
|
||
export default resolvers; |
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
Oops, something went wrong.