mongoose graphql shacdn next setup completed
This commit is contained in:
13
graphql/schema/userSchema.ts
Normal file
13
graphql/schema/userSchema.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { gql } from "graphql-tag";
|
||||
|
||||
export const userTypeDefs = gql`
|
||||
type User {
|
||||
_id: ID!
|
||||
name: String!
|
||||
email: String!
|
||||
}
|
||||
|
||||
type Query {
|
||||
users: [User!]!
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user