Steven Vachon
06/03/2019, 4:15 PMtype Thing {
id: ID! @id
value: String
}
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ thing { value } }" }' <http://localhost:4466>
Field 'thing' argument 'where' of type 'ThingWhereUniqueInput!' is required but not provided.
dpetrick
06/03/2019, 4:20 PMschema / docs
section on the right that helps you get a feeling.Jared
06/03/2019, 4:24 PMSteven Vachon
06/03/2019, 4:32 PMSteven Vachon
06/03/2019, 4:36 PMmutation {
createThing(
value: "something"
)
}
Field 'createThing' of type 'Thing' must have a sub selection
evan
06/03/2019, 4:37 PMmutation {
createThing(
value: "something"
) {
value
}
}
evan
06/03/2019, 4:38 PMvalue
being exchangeable (or in addition) for id
, based on the type you postedSteven Vachon
06/03/2019, 4:39 PMUnknown argument 'value' on field 'createThing' of type 'Mutation'
Field 'createThing' argument 'data' of type 'ThingCreateInput!' is required but not provided.
dpetrick
06/03/2019, 4:42 PMmutation {
createThing(data: {
value: "something"
}) { value }
}
Steven Vachon
06/03/2019, 4:42 PMdata
?Jared
06/03/2019, 4:42 PMdpetrick
06/03/2019, 4:44 PMSteven Vachon
06/03/2019, 4:44 PMSteven Vachon
06/03/2019, 4:44 PMdpetrick
06/03/2019, 4:45 PMSteven Vachon
06/03/2019, 4:46 PMSteven Vachon
06/03/2019, 4:46 PMdpetrick
06/03/2019, 4:47 PMSteven Vachon
06/03/2019, 4:47 PMdpetrick
06/03/2019, 4:48 PMSteven Vachon
06/03/2019, 4:49 PM{
"data": {
"createThing": {
"id": "cjwglyrcy009p0766jlt4tax8"
}
}
}
Steven Vachon
06/03/2019, 4:49 PMevan
06/03/2019, 4:50 PMdata
signifying that its.. data, and createThing
is the name of the query/mutation hitdpetrick
06/03/2019, 4:50 PMSteven Vachon
06/03/2019, 4:51 PMevan
06/03/2019, 4:51 PMSteven Vachon
06/03/2019, 4:52 PMevan
06/03/2019, 4:52 PMSteven Vachon
06/03/2019, 4:53 PMevan
06/03/2019, 4:53 PMSteven Vachon
06/03/2019, 4:53 PMSteven Vachon
06/03/2019, 4:54 PMevan
06/03/2019, 4:54 PMJared
06/03/2019, 4:55 PM