2018-10-04 15:44:15 +03:00
|
|
|
|
|
|
|
#Array relationship
|
|
|
|
- description: Create array relationship using manual method
|
|
|
|
url: /v1/query
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
message: success
|
|
|
|
query:
|
|
|
|
type: create_array_relationship
|
|
|
|
args:
|
|
|
|
table: author_view
|
|
|
|
name: articles
|
|
|
|
using:
|
|
|
|
manual_configuration:
|
|
|
|
remote_table: article
|
|
|
|
column_mapping:
|
|
|
|
id: author_id
|
|
|
|
|
2019-03-01 12:17:22 +03:00
|
|
|
#Rename relationship
|
|
|
|
|
|
|
|
- description: Rename relationship articles to articles_array
|
|
|
|
url: /v1/query
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
message: success
|
|
|
|
query:
|
|
|
|
type: rename_relationship
|
|
|
|
args:
|
|
|
|
table: author_view
|
|
|
|
name: articles
|
|
|
|
new_name: articles_array
|
|
|
|
|
2018-10-04 15:44:15 +03:00
|
|
|
#Drop relationship
|
|
|
|
- description: Drop object relationship
|
|
|
|
url: /v1/query
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
message: success
|
|
|
|
query:
|
|
|
|
type: drop_relationship
|
|
|
|
args:
|
|
|
|
table: author_view
|
2019-03-01 12:17:22 +03:00
|
|
|
relationship: articles_array
|