Replies: 1 comment
-
You should use the given loaders of Mesh as {
sourceHandler: () => ({
name: 'helloworld',
schema$: new GraphQLSchema({
query: new GraphQLObjectType({
name: 'Query',
fields: {
hello: {
type: GraphQLString,
resolve: () => 'world',
},
},
}),
})
}),
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I've the following mesh config with a simple helloworld implementation to illustrate what I try to do:
Two questions:
query hello { hello }
does work, so it does seem so.@resolveTo
also?If both are true I probably have to file a bug-report. As the latest query
query country_hello { country(code: "NL") { hello }}
tries to attach a transport with name "" and fails on it.Many thanks in advance!
Kind regards,
Mathijn
Beta Was this translation helpful? Give feedback.
All reactions