juancastillo0 / leto

Dart GraphQL server libraries. Utilities, code generator, examples and reference implementation.
https://juancastillo0.github.io/leto/
MIT License
38 stars 6 forks source link

Update graphql reservedTypeNamePrefix regex #10

Closed kmcgill88 closed 1 year ago

kmcgill88 commented 1 year ago

Per the graph spec the only reserved Type names begin with double underscore __.

This causes and issue when attempting to integrate [Apollo Federation]() spec which includes the below.

union _Entity

scalar _Any

type _Service {
  sdl: String!
}
juancastillo0 commented 1 year ago

Hi! Thank you so much for the PR! Sorry I did not close this earlier, I had already pushed the fix when I saw the PR. The https://pub.dev/packages/leto_schema/changelog#001-dev2---2022-12-15 version already contains the fix. Thanks again!