codegeek001
09/23/2017, 3:38 AM{
type: 'food',
params: {
definition: {
rules: [
{...},
{...}
]
},
page: 1,
page_size: 50
}
}
I know how to pass in Strings, Ints, IDs, Boolean, and all single input type variables, but I haven't found examples of how to pass in a full object or if that is even possible?
I basically want to be able to do something like this, and the object I'm passing in is the one ^
query Search($object: Object) {
search(object: $object) {
...
}
}
I have also tried creating the type structure on the backend that matches the object I need to pass in and assign it as the type for the argument, but even that doesn't seem to work. Could some one please post an example of how you would do this? A lot of tutorials don't go deep enough into this topic for me to find references.nilan
09/23/2017, 8:21 PM