graphcool init --schema <https://graphqlbin.com/hn...
# prisma-whats-new
d
graphcool init --schema https://graphqlbin.com/hn-relay.graphql --name Hackernews not working. it says Whoops, something went wrong while creating the project. and says the schema is invalid, anyone knows the solution?
a
Yes, the schema is missing the recently introduced
@model
directive on the Types. You can manually add them and point to that schema instead
d
Thanks for the reply. I am new to this, and don't know where to add it?
I don't see any file locally
a
You need to download the graphql file, change all types to
type X @model {...}
(just add the
@model
directive), and then call
graphcool init --schema ./hn-relay.graphql --name Hackernews
d
oh ok thanks!
I will try that