# Connections, Edges & Nodes in Relay URL: https://www.prisma.io/blog/connections-edges-nodes-in-relay-758d358aa4c7 Published: 2016-05-27 Authors: Johannes Schickling, Søren Bramer Schmidt Description: Learn how Relay uses connections, edges, and nodes to model relationships and pagination on top of GraphQL schemas. > Blog posts describe Prisma as it was on the date shown and are not kept current. Before implementing from a post, check the documentation index at https://www.prisma.io/docs/llms.txt and the changelog at https://www.prisma.io/changelog.md. > For an index of every published post, fetch https://www.prisma.io/blog/llms.txt. The terminology of Relay can be quite overwhelming in the beginning. Relay introduces a handful of new concepts on top of GraphQL, mainly in order to manage relationships between models.. This already leads to the first new term: a one-to-many relationship between two models is called a **connection**. ### Example [#example] Let’s consider this following simple GraphQL query. It fetches the `releaseDate` of the `movie` “Inception” and the `name`s of all of its `actors`. The `actors` field is a *connection* between a `movie` and multiple `actors`. ```graphql { movie(title: "Inception") { releaseDate actors { name } } } ``` Now let’s take this query and adjust it to the expected format of Relay. ```graphql { movie(title: "Inception") { releaseDate actors(first: 10) { edges { node { name } } } } ``` ## Edges and nodes [#edges-and-nodes] Okay, let’s see what’s going on here. The `actors` connection now has a more complex structure containing the fields `edges` and `node`. These terms should be a bit more clear when looking at the following image. Don’t worry. In order to use Relay, you don’t have to understand the reasons why the structure is designed this way but rest assured that [it makes a lot of sense](https://relay.dev/graphql/connections.htm). ![](https://www.prisma.io/blog/connections-edges-nodes-in-relay-758d358aa4c7/imgs/0-sPafc6eXHJvRSJhZ.png) Lastly, we also notice the first: 10 parameter on the actors field. This gives us a way to [paginate](https://en.wikipedia.org/wiki/Pagination) over the entire list of related actors. In this case we’re taking the first 10 actors (nodes). In the same way we could additionally specify the after parameter which allows us to skip a certain amount of nodes. ## Further reading [#further-reading] This was just a brief overview on connections in Relay. If you want to dive deeper please check out the [Relay docs on connections](https://relay.dev/docs/api-reference/store/#connectionhandler) or explore the [Relay Cursor Connections Specification](https://relay.dev/graphql/connections.htm).