You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Production {
id: ID!
operation_request_id: String!
operation_response_id: String!
shift(filter: ShiftFilter, order: ShiftOrder, first: Int, offset: Int): [Shift]
}
type Shift {
id: ID!
operation_time: DateTime
operation_time_duration: Int
planned_downtime: DateTime
planned_downtime_duration: Int
unplanned_downtime: DateTime
unplanned_downtime_duration: Int
produce(filter: ProductionFilter): Production
}
type query {
getProduction(operation_response_id: String): Production
}
when i try to extend the operation response schema with production information i;e the relationship is Production.operation_response_id and OperationsResponses.Id
following the configuration in meshrc.yml
additionalTypeDefs: |
extend type OperationsResponses {
Production: Production
}
additionalResolvers:
- './resolvers'
I am able to see production inside operation response in graphql mesh gateway playground but when i query get below error from graphql tools
GraphQLError: not a valid GraphQL query
at C:\Source\Repos\graphql.wtf-graphql-mesh-as-a-gateway-main\node_modules\@graphql-tools\batch-execute\index.js:318:39
at Array.forEach (<anonymous>)
at splitResult (C:\Source\Repos\graphql.wtf-graphql-mesh-as-a-gateway-main\node_modules\@graphql-tools\batch-execute\index.js:316:30)
at C:\Source\Repos\graphql.wtf-graphql-mesh-as-a-gateway-main\node_modules\@graphql-tools\batch-execute\index.js:361:20
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
at async DataLoader.batchExecuteLoadFn [as _batchLoadFn] (C:\Source\Repos\graphql.wtf-graphql-mesh-as-a-gateway-main\node_modules\@graphql-tools\batch-execute\index.js:358:25)
Below is the query i tried to execute
query MyQuery {
OperationsResponses {
Production {
id
shift {
planned_downtime
planned_downtime_duration
}
}
}
}
Discussed in #4044
Originally posted by Shreyasnie June 16, 2022
We have two source following are the graphql schema.
OperationResponse
Production
when i try to extend the operation response schema with production information i;e the relationship is Production.operation_response_id and OperationsResponses.Id
following the configuration in meshrc.yml
following the resolver.ts
I am able to see production inside operation response in graphql mesh gateway playground but when i query get below error from graphql tools
Below is the query i tried to execute
and response I got is below
The text was updated successfully, but these errors were encountered: