You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let sha_from_schema = Sha256::digest(schema_bytes);
42
+
format!("{:x}", sha_from_schema)
43
+
}
44
+
30
45
/// Register your schema to Apollo Studio
31
46
///
32
47
/// * `authorization_token` - Token to send schema to apollo Studio.
@@ -128,3 +143,101 @@ pub async fn register<
128
143
}
129
144
}
130
145
}
146
+
147
+
/// Register your dynamic schema to Apollo Studio
148
+
///
149
+
/// * `authorization_token` - Token to send schema to apollo Studio.
150
+
/// * `schema` - async_graphql generated schema.
151
+
/// * `server_id` - An ID that's unique for each instance of your edge server. Unlike bootId, this value should persist across an instance's restarts. In a Kubernetes cluster, this might be the pod name, whereas the container can restart.
152
+
/// * `variant` - The name of the graph variant to register the schema to. The default value is current.
153
+
/// * `user_version` - An arbitrary string you can set to distinguish data sent by different versions of your edge server. For example, this can be the SHA of the Git commit for your deployed server code. We plan to make this value visible in Apollo Studio.
154
+
/// * `platform` - The infrastructure environment that your edge server is running in (localhost, kubernetes/deployment, aws lambda, google cloud run, google cloud function, AWS ECS, etc.)
0 commit comments