apache / apache/age

How to work with dynamic property

Open
#113 6 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C
Stars
4.8k
Forks
523
Avg merge
1d 2h
Merged PRs (30d)
9

Description

I'm working on a system that need to deal with dynamic properties.

If I want to create a vertex, I can do it like this before that:
select * from ag_catalog.cypher('people',$$ create (nyk:person{name:'nyk'}) return nyk $$) as (v ag_catalog.agtype);

But now, I don't know the property, the property is given by the user as a json object.
The property may be {name:'asdf'} or {name:'asdf', age:25} or {name:'asdf', work:'programmer'} ....
I don't know what property will get.
The problem is same when using the delete,update or get method.
So how to deal with that? Can I bind the property with a json parameter?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.