Questions tagged [graph-query]

Graph query refers to queries made to a graph database query language such as Gremlin, Cypher, GraphQL, NebulaGraph, Microsoft Graph, etc.

13 questions
1
vote
1 answer

Microsoft Graph Delta API for querying /devicemanagement/manageddevices?

I'm trying to sync the devices from Microsoft Endpoint manager https://endpoint.microsoft.com . After performing a full read once, I would like to query the changes alone on daily basis. We are able to fetch all devices using…
0
votes
0 answers

How to comment in the GraphiQL's variable section

When using GraphiQl how can I make comment's in the variable section? Is it even possible? For example I can make comment's in the query section using # like: query ProductVariants($quantityPro: Int!, $quantityVar: Int!) { products(first:…
Wakil Ahmed
  • 1,053
  • 1
  • 8
  • 16
0
votes
0 answers

Can two MATCH statements be put together and returned?

Here are the queries for example: match (v:uid) where id(v) == "1001" return v.uid.name as name1 match (v:uid) where id(v) == "1002" return v.uid.name as name2 I would like to be able to express the two SQL statements in one query, returning two…
MarieS
  • 1
0
votes
0 answers

Is the result accurate using lookup statement to get topN?

I use match and lookup statement to get topN respectively, the speed of lookup is obviously faster than match, using the profile, I found that the indexScan of match matches 20 million, while the TagIndexRangeScan of lookup only matches 1000, in…
0
votes
0 answers

mongoDB aggregate $graphLookup query performance

Problem: My aggregate $graphLookup query is taking too long, specifically 5-6 minutes to find first, second and third degree connections for highly connected people like 'Superman', refer to point 2 below. I am using the mongodb website graph…
0
votes
1 answer

Graph query language GO FROM: How to start from the last returned property?

Is there any way to implement GO FROM from the property returned by the previous query, specifically: GO FROM "XXX" over web yield properties(edge).dst_url_vid as dst_url_vid | GO FROM $-.dst_url_vid over sec_to_sens_type yield dst(edge) The above…
0
votes
1 answer

How to insert multiple records in a certain Tag of the same node?

Assume that there is a tag named "houses", which represents which houses people have. When insert houses, the house information will overwrite by the new one. How to achieve this requirement of a person owning multiple houses? Tag…
0
votes
0 answers

How should I write the query statement for Path rather than Trail or Walk?

I would like to ask how to write the query as shown in drawing below, from point d to point a, the TRAIL does not include d → b → a → j → a. If I don't want it to pass through a before going forward, is there any query method? Thanks!
Felixv
  • 1
0
votes
1 answer

Gremlin query to check for two properties value

I am trying to do a query in Gremlin similar to the following. SELECT * FROM profiles WHERE firstName like 'John' OR lastName like 'John' both firstName and lastName are properties of one vertex
sinthu225
  • 301
  • 3
  • 16
0
votes
1 answer

OreintDb Select Query IN Operator filter with traverse Subquery not working

I'm trying to use the Traverse query in the sub-query to get the filtered data for the vertex, but not able to retrieve the data please find the below steps for the vertex setup CREATE CLASS Territory IF NOT EXISTS EXTENDS V CREATE PROPERTY…
SAMEER
  • 1
  • 2
0
votes
0 answers

How to make images work in Gatsby with map function

I am trying to render an artist image, name, city, and current team. I have tried numerous ways to make this work, but for some reason I just can't seem to get it. They query I used was tested in GraphiQL browser. I would greatly appreciate some…
Sherre Ahlers
  • 71
  • 1
  • 11
0
votes
1 answer

How to filter by property in Gremlin (if exist)?

I am new Gremlin and having trouble with filtering by property. A -> B Assume A and B are vertices and has edge between them with properties Created_on and deleted_on. deleted_on property will be added only at the time of deletion. How list by the…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
-1
votes
1 answer

Can I group Data by Mutual Fields?

Hi I'm currently trying to create a query to group customers together. I'm currently wanting to group by "Phone Number", "Email" and maybe some other fields in the future. My problem is that I may want to group rows which aren't directly linked but…