'Custom types in graphQL schema through api platform
I'm using postgres extension POSTGIS and longitudeOne package in Symfony. So in my entity I have an attribute called coordinates which is a "point" type. But when I'm trying to get through a graphQL query a collection of entities, the attribute is not in my schema... The issue surely comes from the custom type but I don't find a way to make it recognize in my schema...
What I would like to get is
query
{
destinations
{
collection
{
id
coordinates
}
}
}
What I have:
query
{
destinations
{
collection
{
id
}
}
}
And if I force the coordinates attributes, it says :
Cannot query field "coordinates" on type "Destination".
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
