Skip to content

Instantly share code, notes, and snippets.

@4knort
Created June 7, 2018 16:05
Show Gist options
  • Save 4knort/7d5e001163a9ae6bea9ac9e2af7cc2ff to your computer and use it in GitHub Desktop.
Save 4knort/7d5e001163a9ae6bea9ac9e2af7cc2ff to your computer and use it in GitHub Desktop.
{data: null, errors: [{,…}]}
data
:
null
errors
:
[{,…}]
0
:
{,…}
description
:
"Fragment CourseFlowFields cannot be spread here as objects of type GraphQLObjectType{name='Teacher', description='', fieldDefinitionsByName=[id, name, description, photoUrl, skype, user, socialLinks], interfaces=[]} can never be of type GraphQLObjectType{name='CourseFlow', description='', fieldDefinitionsByName=[id, dateStart, name, course, courseId, videoUrl, chatRoom, materials, lessons, teachers, members, promoCodes, tariffs], interfaces=[]}"
errorType
:
"ValidationError"
extensions
:
null
locations
:
[{line: 3, column: 5}]
message
:
"Validation error of type InvalidFragmentType: Fragment CourseFlowFields cannot be spread here as objects of type GraphQLObjectType{name='Teacher', description='', fieldDefinitionsByName=[id, name, description, photoUrl, skype, user, socialLinks], interfaces=[]} can never be of type GraphQLObjectType{name='CourseFlow', description='', fieldDefinitionsByName=[id, dateStart, name, course, courseId, videoUrl, chatRoom, materials, lessons, teachers, members, promoCodes, tariffs], interfaces=[]} @ 'createTeacher'"
path
:
null
queryPath
:
["createTeacher"]
validationErrorType
:
"InvalidFragmentType"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment