Here is an example graph schema featuring products and categories: Product/category graph schema - built with You can even imagine having a graph schema different from your “domain” schema, and still building proper objects thanks to map projection. But another application of this concept that I like is the ability to write “Object-Graph mappers” (OGM) in an easy way. I introduced map projection in a GraphQL context, making it easier to take full advantage of GraphQL queries by fetching only the required fields from the database (they do not have to transition through another layer of filtering in your backend). ![]() The final selector lets us return only the first three actors, sorted by date of birth. ![]() It lets you write very precise pattern matching queries like: MATCH (movie:Movie ) Cypher is a visual graph query language used by the Neo4j graph database.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |