Hello there, When using graphQL with api platform 3.0, I noticed something that has changed between 2.6 and 3.0, if have two entities (salad, banana) linked by a ManyToOne relation if the paginationType is page (in salad) and paginationType is cursor (in banana)
When we fetch a banana with simple query:
query
{
bananas { totalCount }
}
the cursor pagination works well ! The type of the banana connection is called BananaCursorConnection. BUT when the collection is called inside another query
query
{
salad
{
bananas
{
totalCount
}
}
}
It will not work and return the error that totalCount is not a correct attribute.
Actually it seems that the type of the bananas has strangely turned into BananaPageConnection forced by the primary entity called.
I tried to force the type by using a TypeConverter which returned me a BananaCursorConnectionPageConnection ....
Is it a correct behavior for api_platofrm 3.0 or did I miss a configuration somewhere ?
Thanks !
Hello there, When using graphQL with api platform 3.0, I noticed something that has changed between 2.6 and 3.0, if have two entities (salad, banana) linked by a ManyToOne relation if the paginationType is page (in salad) and paginationType is cursor (in banana)
When we fetch a banana with simple query:
the cursor pagination works well ! The type of the banana connection is called BananaCursorConnection. BUT when the collection is called inside another query
It will not work and return the error that totalCount is not a correct attribute.
Actually it seems that the type of the bananas has strangely turned into BananaPageConnection forced by the primary entity called.
I tried to force the type by using a TypeConverter which returned me a BananaCursorConnectionPageConnection ....
Is it a correct behavior for api_platofrm 3.0 or did I miss a configuration somewhere ?
Thanks !