GroceriStar / GroceriStar/graphql-server
create relations between types
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
when i was reading the specification - i tried to create some sort of schema at paper. i just find it, and decide to move it here, for discussion. I'm 100% sure that my schema wrong, because i didn't finished my learning of graphQL yet. but maybe it will give us a topic to discuss and will help you. listing it below.
```
type UserGrocery {
user: User!
groceries: [Grocery]!
id: ID!
}
```
```
type Department {
name: String!
desc:String!
ingredients: [Ingredients]!
id: ID!
}
```
```
type Favorites {
user:User!
favorites: [Ingredient]!
id: ID!
}
```
```
type Ingredient {
name
description
custom: Boolean!
department: Department!
}
```
```
type User {
tokens: [Token]!
identities:[]!
credentials:[]!
groceries:[Grocery]!
favorites:[Favorite]!
id: ID!
}
```
```
type Grocery {
name: String!
image: Binary!
description: String!
slug: String!
departments: [Department]! {Show/Hide}
purchased: [Ingredient]!
ingredients:[Ingredient]!
id: ID!
}
```
```
type Item {
name: String!
description: String!
quantity: Number!
purchase: Boolean!
id: ID!
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.