hola Jose, me he encontrdo con un problema de al momento de crear una Interface pero es en la parte de resolver con lightHouse, y que no logro entender, me podrias orientar?, muchas gracias.
I have a problem, I have contacts but it is divided into Person or company, create an interface but at the moment of executing it it generates an error:
{
"errors": [
{
"debugMessage": "Abstract type Contact must resolve to an Object type at runtime for field Query.contacts with value \"{\"id_contact\":4,\"id_parent_contact\":null,\"id_job\":null,\"type\":2,\"name\":\"Laura\",\"lastname\":\"Sanchez\",\"identification_type\":1,\"identification_number\":1049342129,\"email\":\"laura@gmail.com\",\"phones\":\"3203428890\",\"state\":1,\"locate\":null,\"city\":null,\"address\":null,\"web_site\":null}\", received \"Contact\". Either the Contact type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"contacts",
0
]
`
i am working with laravel lighthouse
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
hola Jose, me he encontrdo con un problema de al momento de crear una Interface pero es en la parte de resolver con lightHouse, y que no logro entender, me podrias orientar?, muchas gracias.
I have a problem, I have contacts but it is divided into Person or company, create an
interface
but at the moment of executing it it generates an error:Query:
///////////////////////////////////////////////////////
`
result:
`
`
i am working with laravel lighthouse