This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Auto-generate GraphQL schema using contract ABI #846
Labels
documentation
Improvements or additions to documentation
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 |
5 tasks
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: