Skip to content
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

Example demo and end-to-end test #2

Open
4 tasks
willscott opened this issue Dec 8, 2020 · 2 comments
Open
4 tasks

Example demo and end-to-end test #2

willscott opened this issue Dec 8, 2020 · 2 comments

Comments

@willscott
Copy link
Member

  • Create a simple but demonstrative go-ipld-prime schema
  • Create a car file matching that schema
  • Create an example graphql server over that schema and data
  • Create a test to exercise expected queries of the generated code
@felixboehm
Copy link

As there is only an outdated hint to an non existing example folder in the readme, this would help a lot.

@willscott
Copy link
Member Author

For sure!

for now you can look at a couple of the places that use it it to see:

  • you hook into this against a schema. this is from when we would deal with schemas using codegen rather than bindnode, but a bindnode-loaded schema will work the same. Here's an example

This then generates schema.go. The part that isn't generated and which uses that schema would in this case is server.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants