Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.83 KB

subgraph.md

File metadata and controls

51 lines (39 loc) · 1.83 KB
page_title subcategory description
cosmo_subgraph Resource - cosmo
This resource handles subgraphs. Each subgraph is responsible for defining its specific segment of the schema and managing the related queries. For more information on subgraphs, please refer to the Cosmo Documentation https://cosmo-docs.wundergraph.com/cli/subgraph.

cosmo_subgraph (Resource)

This resource handles subgraphs. Each subgraph is responsible for defining its specific segment of the schema and managing the related queries.

For more information on subgraphs, please refer to the Cosmo Documentation.

Example Usage

resource "cosmo_subgraph" "test" {
  name        = var.name
  namespace   = var.namespace
  routing_url = var.routing_url
  labels      = var.labels
  schema      = var.schema
}

Schema

Required

  • name (String) The name of the subgraph.
  • routing_url (String) The routing URL of the subgraph.

Optional

  • is_event_driven_graph (Boolean) Indicates if the subgraph is event-driven.
  • is_feature_subgraph (Boolean) Indicates if the subgraph is a feature subgraph.
  • labels (Map of String) Labels for the subgraph.
  • namespace (String) The namespace in which the subgraph is located.
  • readme (String) The readme for the subgraph.
  • schema (String) The schema for the subgraph.
  • subscription_protocol (String) The subscription protocol for the subgraph.
  • subscription_url (String) The subscription URL for the subgraph.
  • unset_labels (Boolean) Unset labels for the subgraph.
  • websocket_subprotocol (String) The websocket subprotocol for the subgraph.

Read-Only

  • id (String) The unique identifier of the subgraph resource.