John Smeeth
01/30/2019, 5:54 AM# import User from "../prisma/generated/prisma.graphql" then using it as follow
type Query {
users: [User!]!
}
type Mutation {
createUser(email: String!): User
}divyendu
01/30/2019, 8:52 AMJohn Smeeth
01/31/2019, 8:41 AMJohn Smeeth
01/31/2019, 8:42 AMdivyendu
01/31/2019, 8:47 AM# import syntax in JS/TS world is powered by this project: https://github.com/prisma/graphql-import
It is built in many tools, so, it give the feeling that it just works 🙂
But mainly, all this project does is concatenate the files together, base version of that should be easy to write in golang. You can share a repository with your requirements/challenges to bounce off ideas with the community 🙂John Smeeth
01/31/2019, 9:22 AMserver/schema.graphql. Thank youJohn Smeeth
01/31/2019, 10:20 AMdivyendu
01/31/2019, 10:21 AMJohn Smeeth
01/31/2019, 10:22 AMdivyendu
02/04/2019, 10:35 AMgraphql-import https://github.com/prisma/graphql-import in go lang. I am not aware of any project that implements this already.John Smeeth
02/04/2019, 3:10 PM