tigergraph / ecosys

TigerGraph Ecosystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Built-in endpoint "POST /graph/{graph_name} - Upsert the given data" doesn't validate the request.

YuZhenXie opened this issue · comments

As described in document, invalid source vertex type will cause the entire request to fail when upserting an edge. But when I tried with the invalid source vertex type, the edge still can be inserted. Please kindly confirm the issue. Thanks!!

@YuZhenXie "invalid source vertex type" can you help me understand if this is what you meant:

Schema is as follows:
USER -(likes)-> MOVIE

Vertex Type in this case is USER, so if you type USERS (notice that I added an "S") that would be an "invalid source vertex type".

So when you tried to do USERS the edge was created?

My case is different from the example you provided. Mine is like following.

Schema:
VERTEX USER
VERTEX EVENT
EDGE next_event (FROM EVENT, TO EVENT)

When I upserted an next_event which is connected from USER to USER, the request is accepted and the edge is upserted. But from my understanding, the request should be rejected because USER is an "invalid source vertex type"..

Hi @YuZhenXie We just launched a new community site to answer these types of questions on https://community.tigergraph.com/. Please repost the original question there and someone will respond promptly. Thanks! Jon Herke, Technical Evangelist