# GraphQL

GraphQL objects could simply be generated of existing flows. This is still a very basic implementation and could be further improved.

Currently you could only expose a flow by its flow name.

```
endpoint "address" "graphql" {
    path = "user.address"
    name = "address"
    base = "mutation"
}
```

The GraphQL server is exposed on the configured port. Check out the Semaphore CLI documentation or the documentation of your own implementation for more information.

{% tabs %}
{% tab title="bash" %}

```bash
$ # Expose a GraphQL server on port 9090
$ semaphore daemon -f config.yaml
```

{% endtab %}

{% tab title="config.yaml" %}

```yaml
graphql:
    address: ":9090"
```

{% endtab %}
{% endtabs %}
