-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-generate GraphQL schema using contract ABI #846
Comments
cc @rvmelkonian @deekerno @lostman This is definitely something we should think about. However, not really worth starting work on until we can discuss a way around the namespacing issue. Either some prefix or suffix or something on these type names. From what I've seen so far, users expect the |
@ra0x3 prefixing with |
I've taken a step towards this: FuelLabs/sway#4847 A roadmap for this issue could be:
|
@AlicanC Thanks for looking into this
If you were to start implementing this:
I say all of this to say:
I hope some of this blabbing made sense |
|
forc index new
your schema, lib module, and manifest are auto-generatedAdditional context
--auto-graphql-types
(or some such) passed toforc index new
Foo
struct in your Sway contract and aFoo
in your GraphQL schema - the types will clashmy_abi::Foo
andmy_graphql::Foo
instead of justFoo
(due to the naming collision).The text was updated successfully, but these errors were encountered: