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

Question about the entity model #29

Closed
smiqueias opened this issue Jan 26, 2022 · 1 comment
Closed

Question about the entity model #29

smiqueias opened this issue Jan 26, 2022 · 1 comment

Comments

@smiqueias
Copy link

In the api documentation, the character schema has a list of the episode schema.

If I want to make a query like this:

query($page: Int!) {
  characters(page: $page) {
    results {
      id,
      name,
      status,
      species,
      image,
      type,
      episode {
        name,
        air_date,
        episode
        
      }
    }
  }
}

Can I insert the List field in the character entity, for example?

@vedartm
Copy link
Owner

vedartm commented Apr 8, 2022

Yes. You can have a list of episodes entity inside the character entity.

@vedartm vedartm closed this as completed Apr 8, 2022
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