Replies: 1 comment
-
|
Seems I found a working way, it works like this: someNumberField: {
type: GraphQL.GraphQLFloat,
},
post: {
type: payload.Query.fields.Post.type,
},Is this the right way? |
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.
-
How can I set in a custom GraphQL query the custom field type to a collection type (eg Posts)? Here https://payloadcms.com/docs/graphql/extending I see the example with only scalar types like
GraphQL.GraphQLStringandGraphQL.GraphQLFloat:But I need to define the field that returns the
Postdocument with multiple fields, how to define this?By the way, what is the correct Typescript type of the GraphQL argument in the function
queries: (GraphQL, payload)?Beta Was this translation helpful? Give feedback.
All reactions