createGuestSession
Create a guest session for anonymous users. Call this before any cart or account operation: no other mutation creates a session, so one that needs a session refuses without it. Idempotent, so calling it with a session already in place is harmless.
Returns
| Field | Type | Description |
|---|---|---|
success | Boolean! | Whether the guest session was created successfully |
Example
mutation { createGuestSession { success }}{ "data": { "createGuestSession": { "success": true } }}The query is the example the schema documents. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Resolved |
| @evolve-framework/sfcc | Not resolved |

