Skip to content
Discussion options

You must be logged in to vote

When working with GraphSQL, it's important to note that it does not automatically return parent page objects. To retrieve these, follow these steps:

  1. Identify the Path: Start with a given path. For example, if your path is a/b/c/d/, the parent path would be a/b.

  2. Fetching the Page:

    • For Version >= 2.5.296: Use the getSingleByPath query to directly fetch the page at the specified path.
    • For Versions < 2.5.296:
      • First, execute the pages/search(path) query with your specified path.
      • After retrieving the results, use the pages/single(Id) query and pass the Id returned from the previous step.

By following these steps, you can effectively navigate and retrieve parent page objects in any ve…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Siecje
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants