Skip to content

Features/gql filters - #2126

Merged
shivamka1 merged 5 commits into
masterfrom
features/gql_filters
Jun 17, 2025
Merged

shivamka1 merged 5 commits into
masterfrom
features/gql_filters

Conversation

@shivamka1

@shivamka1 shivamka1 commented Jun 16, 2025 •

Copy link
Copy Markdown
Contributor

Impl validate operator value pair

gql query:

query {
  graph(path: "master") {
    nodeFilter(filter: {
      property: {
        name: "p10"
        operator: CONTAINS
        value: { u64: 2 }
      }
    }) {
      nodes {
        list {
          name
        }
      }
    }
  }
}

returns

{
  "data": null,
  "errors": [
    {
      "message": "Invalid filter: Operator CONTAINS requires a string value, got U64(2)",
      "locations": [
        {
          "line": 3,
          "column": 5
        }
      ]
    }
  ]
}

@shivamka1
shivamka1 marked this pull request as ready for review June 17, 2025 10:53
Comment thread raphtory-graphql/src/model/graph/filtering.rs Outdated
Comment thread raphtory-graphql/src/model/graph/filtering.rs Outdated
Comment thread raphtory-graphql/src/model/graph/filtering.rs Outdated
Comment thread raphtory-graphql/src/model/graph/filtering.rs Outdated
Comment thread raphtory-graphql/src/model/graph/filtering.rs Outdated
Comment thread raphtory-graphql/src/model/graph/property.rs Outdated
Comment thread raphtory-graphql/src/model/graph/property.rs Outdated

@ljeub-pometry ljeub-pometry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@shivamka1
shivamka1 merged commit 3e0b869 into master Jun 17, 2025
@shivamka1
shivamka1 deleted the features/gql_filters branch June 17, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants