Method: Orchestrate::Client#delete_relation

Defined in:
lib/orchestrate/client.rb

#delete_relation(collection, key, kind, to_collection, to_key) ⇒ Object

Parameters:

  • collection (#to_s)

    The name of the collection.

  • key (#to_s)

    The name of the key.

  • kind (#to_s)

    The kind of relationship to delete.

  • to_collection (#to_s)

    The name of the collection to relate to.

  • to_key (#to_s)

    The name of the key to relate to.

Returns:

  • Orchestrate::API::Response

[View source]

397
398
399
400
# File 'lib/orchestrate/client.rb', line 397

def delete_relation(collection, key, kind, to_collection, to_key)
  path = [collection, key, 'relation', kind, to_collection, to_key]
  send_request :delete, path, { query: {purge: true} }
end