query platformAnonymous
The platform record, whose only field is the set of enabled feature flags.
Reachable anonymously and on the public graph because the apply wizard is unauthenticated — a merchant enrolling has no account yet — and needs to know which optional enrollment paths are switched on. Nothing here is sensitive: it is the names of enabled flags and nothing else. Turning a flag on or off remains @auth, on the mutations below.
Returns Platform!
Example request
curl -X POST 'https://graph.clientloop.com/' \
-H 'Content-Type: application/json' \
-d '{
"query": "query Platform { platform { enabledFeatureFlags } }",
"variables": {}
}'const response = await fetch('https://graph.clientloop.com/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: `
query Platform {
platform {
enabledFeatureFlags
}
}
`,
variables: {},
}),
});
const { data, errors } = await response.json();<?php
$body = <<<'JSON'
{
"query": "query Platform { platform { enabledFeatureFlags } }",
"variables": {}
}
JSON;
$ch = curl_init('https://graph.clientloop.com/');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
var body = """
{
"query": "query Platform { platform { enabledFeatureFlags } }",
"variables": {}
}
""";
var request = HttpRequest.newBuilder(URI.create("https://graph.clientloop.com/"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
var response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());using System.Net.Http;
using System.Text;
var body = """
{
"query": "query Platform { platform { enabledFeatureFlags } }",
"variables": {}
}
""";
using var client = new HttpClient();
using var content = new StringContent(body, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://graph.clientloop.com/", content);
var result = await response.Content.ReadAsStringAsync();Types
type Platform
| Field | Type | Description |
|---|---|---|
enabledFeatureFlags | [PlatformFeatureFlag!] |
enum PlatformFeatureFlag
NoopPublicCompanyEnrollment— Offers the publicly traded company entity type during enrollment. TODO(CLP-294): remove this flag, and the checks that read it, once the publicly traded company path is live. Flags are meant to be temporary; left in place they become permanent branches nobody dares delete.