Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create relations between types #4

Open
atherdon opened this issue Jan 8, 2019 · 1 comment
Open

create relations between types #4

atherdon opened this issue Jan 8, 2019 · 1 comment
Assignees

Comments

@atherdon
Copy link
Member

atherdon commented Jan 8, 2019

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!
}
@atherdon atherdon mentioned this issue Jan 10, 2019
8 tasks
@atherdon
Copy link
Member Author

tell me what do you think @nadaa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants