Updated on 2022-09-14 GMT+08:00
Adding a Property
You can use a specific API provided by GES to add a property. The sample code is as follows:
public static void addProperties(GraphClient graphClient) throws ApiException
{
AddPropertiesReq req = new AddPropertiesReq();
req.setLabelName("stop");
List<Property> properties = new ArrayList<Property>();
Property property = new Property();
property.put("name", "a");
property.put("cardinality", "single");
property.put("dataType", "int");
properties.add(property);
req.setProperties(properties);
Map<String, Object> result = graphClient.addProperties(req);
System.out.println(MapUtils.map2json(result));
} Parent topic: Using the Service Plane SDK
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.