DEV Community

Discussion on: graphql, with egde and node or not?

Collapse
 
ale_jacques profile image
Alexandre Jacques

AFAIK, Edges and Nodes are used by Relay client (React - relay.dev/). Somebody please correct me if I'm wrong.

Collapse
 
bimbimprasetyoafif profile image
Bimo Prasetyo Afif • Edited

ahh i see. is it okay even doesn't use relay in server? i don't know what relay used for :")

Collapse
 
oncle_flingueur profile image
Laimis

The Node interface is enforced only by Relay.js, everywhere else it's optional. You don't have to use it, but if you're building an app that will grow in the future, Node might make it easier to scale.

If this is your first app and it does not have a complex schema, you can skip nodes and edges.