diff options
| author | Johannes Schickling <schickling.j@gmail.com> | 2018-05-21 18:45:20 -0700 |
|---|---|---|
| committer | Johannes Schickling <schickling.j@gmail.com> | 2018-05-21 18:45:20 -0700 |
| commit | 6e617cbcb456bd0316392d53550e9b34de16001a (patch) | |
| tree | 34e7560276d0b32aa09b406b6566415f67125c1d /backend/src/schema.graphql | |
| parent | c5445348614486c95fc5f989ca2b19f00946824f (diff) | |
simplified schema import
Diffstat (limited to 'backend/src/schema.graphql')
| -rw-r--r-- | backend/src/schema.graphql | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql index bd60b61..fdaa04f 100644 --- a/backend/src/schema.graphql +++ b/backend/src/schema.graphql @@ -1,9 +1,12 @@ -# The Below line looks like a comment, but its not! -# import Permission, Order, OrderItem, CartItem, ItemWhereInput, ItemOrderByInput, allItems, Item, ItemCreateInput, ItemOrderByInput, ItemWhereInput, Query.orders, Query.users, Query.items, Query.itemsConnection from './generated/prisma.graphql' +# The Below line looks like a comment, but it's not! +# import * from './generated/prisma.graphql' type Query { me: User order(id: ID!): Order! + orders(where: OrderWhereInput, orderBy: OrderOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Order]! + items(where: ItemWhereInput, orderBy: ItemOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Item]! + itemsConnection(where: ItemWhereInput, orderBy: ItemOrderByInput, first: Int, last: Int): ItemConnection! } type Mutation { |
