Matt Mueller (Prisma Client PM)
sashko
10/19/2016, 8:19 AMcontext
just like react-redux
sashko
10/19/2016, 8:19 AMgraphql
container has to be somewhere underneath the providerMatt Mueller (Prisma Client PM)
abhisheksp
10/19/2016, 9:13 AMabhisheksp
10/19/2016, 9:13 AMabhisheksp
10/19/2016, 9:14 AMThere are ${this.props.viewer.allPokemons.edges.length} Pokemons in your pokedex
}
</div>
<div className={classes.container}>
{this.props.viewer.allPokemons.edges
.map(edge => <PokemonPreview key={edge.node.dataID} pokemon={edge.node} />)}
</div>
</div>
)
}
}abhisheksp
10/19/2016, 9:14 AMabhisheksp
10/19/2016, 9:15 AMabhisheksp
10/19/2016, 9:16 AMabhisheksp
10/19/2016, 9:16 AMrene
10/19/2016, 9:18 AMnode.id
?abhisheksp
10/19/2016, 9:24 AMedge.node.id
the key property is not set , and react shows the warning that children in an array iteration require unique id ,abhisheksp
10/19/2016, 9:24 AMabhisheksp
10/19/2016, 9:26 AMedge.node.__dataID__
the key is set and is visible in the react console and the warning disappearsabhisheksp
10/19/2016, 9:26 AMalex42
10/20/2016, 1:43 AMullrich
10/20/2016, 8:38 AMgetVariables
you return inviteAnswer
to always be true
ullrich
10/20/2016, 8:39 AMsashko
10/20/2016, 6:16 PMsashko
10/20/2016, 6:16 PMredcom
10/20/2016, 6:17 PMjwaldrip
10/20/2016, 6:49 PMsorenbs
Matt Mueller (Prisma Client PM)
Matt Mueller (Prisma Client PM)
Matt Mueller (Prisma Client PM)
nilan
10/21/2016, 8:19 AMquery getArticlesAndUsers($limit: Int!, $user: ID!) {
articles: allArticles (first: $limit) {
title
slug
text
}
user: User (id: $user) {
firstName
lastName
}
}
If I remember correctly, the queries are run sequentially from top to bottom.nilan
10/21/2016, 8:20 AMnilan
10/21/2016, 8:20 AM