-
Hey, const newRequest = createRequest({
targetOperation: 'query',
selectionSet: {
kind: 'SelectionSet',
selections: [
{
kind: 'Field',
name: { kind: 'Name', value: 'edges' },
selectionSet: {
kind: 'SelectionSet',
selections: [
{
kind: 'Field',
name: { kind: 'Name', value: 'node' },
selectionSet: { kind: 'SelectionSet', selections: info.fieldNodes[0].selectionSet?.selections || [] },
},
],
},
},
],
},
targetFieldName: 'persons',
variableDefinitions: [
{
kind: 'VariableDefinition',
variable: { kind: 'Variable', name: { kind: 'Name', value: 'orderBy' } },
type: {
kind: 'NonNullType',
type: { kind: 'NamedType', name: { kind: 'Name', value: 'OrderPersonsBy' } },
},
},
],
variableValues: { orderBy: { createdBy: { priority: 1, ascending: true } } },
});
const result = await delegateRequest({ request: newRequest, schema: personSchema }); My main issue is that I keep receiving the message Any advices? Or am I better off with running the request without |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you need to set args property in delegateRequest I think you might be able to use batchDelegate with a transform as an alternative but may be kind of tricky |
Beta Was this translation helpful? Give feedback.
I think you need to set args property in delegateRequest
I think you might be able to use batchDelegate with a transform as an alternative but may be kind of tricky