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

creating types #3

Open
8 tasks done
atherdon opened this issue Jan 8, 2019 · 9 comments
Open
8 tasks done

creating types #3

atherdon opened this issue Jan 8, 2019 · 9 comments
Assignees

Comments

@atherdon
Copy link
Member

atherdon commented Jan 8, 2019

we need to create tables(types) for our database schema

  • User Grocery
  • Favorites
  • Ingredient
  • Grocery
  • Item
  • User
  • Department
  • Grocery
@nadaa
Copy link
Contributor

nadaa commented Jan 10, 2019

I will start working on this,
what is the difference between User, and User Grocery?

@atherdon
Copy link
Member Author

User has data related to user profile: name, email, etc.
UserGrocery is a collection of grocery lists, related to user.

it can be one type with field that will connect User and Grocery types.

check this schema: https://github.com/GroceriStar/graphql-server/blob/master/README.md#schema

@nadaa
Copy link
Contributor

nadaa commented Jan 10, 2019

@atherdon, do you suggest to create separated files (schema, mutation, query) for each model?

@atherdon
Copy link
Member Author

it'll be a good skeleton for a future! yes, please

@atherdon
Copy link
Member Author

i'm closing this task, but assuming that we'll change types in #4 because we didn't connect types together.

@atherdon
Copy link
Member Author

We don't have an ingredients schema

@nadaa
Copy link
Contributor

nadaa commented Jan 15, 2019

id_1 in the ingredient refers to what?

@atherdon
Copy link
Member Author

  1. I assume we're talking about schema that we have at readme
  2. I think this key related to userFav. But it was made for an old SQL like schemas. just to let you know

@atherdon
Copy link
Member Author

@nadaa i think we finish this task, right? just want to close it

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