Answers for ""TypeError: Cannot read property 'kind' of undefined" 1: at determineDepth node_modules/graphql-depth-limit/index.js:60:16"

0

"TypeError: Cannot read property 'kind' of undefined" 1: at determineDepth node_modules/graphql-depth-limit/index.js:60:16

// I have come to realise this happens if you don't import the fragment file with a fragment definition, then this happens.
// eg: 
gql`mutation autoPlansM ($conv_id: ID!) {
  autoPlans (conv_id: $conv_id) {
    id
    escalations {
      ...convEscalationF # we should add at the top eg: #import "escalationsF.graphql"
    }
  }
}
`
Posted by: Guest on March-30-2022

Code answers related to ""TypeError: Cannot read property 'kind' of undefined" 1: at determineDepth node_modules/graphql-depth-limit/index.js:60:16"

Code answers related to "Javascript"

Browse Popular Code Answers by Language