Skip to content

Is it possible to retrieve attributes from a request? #510

Open
@btudor-90

Description

@btudor-90

I'm migrating a legacy node/graphql application to springboot. My queries are dynamically generated on the frontend, and can potentially go 10 nested entities deep. Instead of pulling all of this data from the database every time, I'd rather only pull requested entities.

query Assets($meta: Meta_Asset!, $search: Search_Asset, $filters: AssetFilters) {
  Assets(meta: $meta, search: $search, filters: $filters) {
    total
    scrollid
    search_after
    source {
      AssetCode
      PhysicalLocation {
        Location {
          Company {
          ...

Is it possible to parse the raw query from the @GraphQLQuery(name = "Assets") e.g. see that source contains AssetCode.PhysicalLocation.Location.Company

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions