Closed blongstreth closed 1 year ago
Hi @blongstreth ,
We're helping with project maintenance and reviewing the list of opened PRs and Issues.
This issue was created quite a while ago, we were wondering if you were still interested in the outcome, please let us know if this is the case.
Without an answer by July 1st, 2023, this issue will be closed as "inactive" (and can always be re-opened later on if needed).
Thanks,
Hello:
I noticed that AnnotationsSchemaCreator adds
Relay.pageInfoType
during the build phase and doesn't allow it to be overridden. I have a use case where I want to federate into a schema which already hasscalar Cursor
defined for the Relay specification. This means all types likePageInfo
,Edge
, etc... useCursor
instead ofString
in the schema. I managed to work around the issue by hacking theGraphQLSchema.Builder
and preventing it from settingRelay.pageInfoType
. I realize I could have not usedAnnotationsSchemaCreator
but I want to use this handy utility. Anyway, the code listed below is an example of one one way to workaround the issue. If anyone would consider fixing the issue along with adding direct support for GraphQL-java version 15.0 would be greatly appreciated.Regards,
Bradley
Example Classes:
Example Usage: