amanda_hogan
11/16/2017, 1:35 AMquery {
allAnswers(filter: {
keywords_contains: "location"
}) {
response
}
}
This is an example of the Type in the schema type Answer @model {
id: ID! @isUnique
intent: String!
keywords: [String!]
response: String!
subject: String! @isUnique
timeStamp: DateTime!
}
and I am getting this error {
"data": null,
"errors": [
{
"message": "Argument 'filter' expected type 'AnswerFilter' but got: {keywords_contains: \"location\"}. Reason: 'keywords_contains' Field 'keywords_contains' is not defined in the input type 'AnswerFilter'. (line 2, column 22):\n allAnswers(filter: {\n ^\n (line 3, column 5):\n keywords_contains: \"location\"\n ^",
"locations": [
{
"line": 2,
"column": 22
},
{
"line": 3,
"column": 5
}
]
}
]
}
can someone point out where I am going wrong.amanda_hogan
11/16/2017, 1:37 AMiamclaytonray
11/16/2017, 2:14 AMiamclaytonray
11/16/2017, 2:22 AMiamclaytonray
11/16/2017, 2:23 AMiamclaytonray
11/16/2017, 2:25 AMiamclaytonray
11/16/2017, 2:26 AMnilan
11/16/2017, 10:11 AMnilan
11/16/2017, 10:11 AM