Skip to Content
API ReferenceCore APIOverview

Core API

This section documents the GraphQL API for the Core module.

Types

User

Fields:

NameTypeDescription
idID!Unique identifier
firstNameString!User’s first name
lastNameString!User’s last name
emailString!User’s email address
uiLanguageString!Preferred UI language
updatedAtTime!Last update timestamp
createdAtTime!Creation timestamp

PaginatedUsers

Fields:

NameTypeDescription
data[User!]!List of users
totalInt64!Total user count

Upload

Represents a file upload in the system.

Fields (align with schema):

NameTypeDescription
idID!Unique identifier
nameString!File name
urlString!File access URL
pathString!Storage path
hashString!Content hash
slugString!Slug
mimetypeString!MIME type
typeUploadType!Upload type
sizeInt!File size in bytes
geoPointGeoPoint!Geo data

Queries

user

Fetch a single user by ID.

user(id: ID!): User

users

Fetch a paginated list of users.

users(offset: Int!, limit: Int!, sortBy: [Int!], ascending: Boolean!): PaginatedUsers!

Arguments:

NameTypeDescription
offsetInt!Pagination offset
limitInt!Number of results to return
sortBy[Int!]Sort field indices
ascendingBoolean!Sort direction

uploads

Fetch uploads with an optional filter. (There is no me or single-upload upload(id) query in the current Core schema; use user(id) with the current user ID if needed.)

uploads(filter: UploadFilter!): [Upload!]!

Arguments:

NameTypeDescription
filterUploadFilter!Filter by mimeType, mimeTypePrefix, type, sort

Mutations

User create/update/delete are not exposed in the Core GraphQL schema; use REST endpoints (e.g. POST/GET/DELETE /users, /users/:id) for user management.

uploadFile

Upload a new file.

uploadFile(file: File, opts: UploadFileOpts): Upload!

uploadFileWithSlug

Upload a file with a custom slug.

uploadFileWithSlug(file: File, slug: String!, opts: UploadFileOpts): Upload!

authenticate

Authenticate a user (GraphQL). Session is returned; end session via REST GET /logout or cookie.

authenticate(email: String!, password: String!): Session!

Subscriptions

counter

Real-time counter for testing subscriptions.

counter: Int!

Scalars

Time

ISO 8601 timestamp.

Int64

64-bit integer for large numbers.


This documentation is auto-generated from GraphQL schema files. Last updated: 2026-01-31

Last updated on