These are the GraphQL return types defined in the Apollo Server schema atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Avendaosander/Plataforma-social/llms.txt
Use this file to discover all available pages before exploring further.
server/src/graphql/typeDefs.ts. Every query and mutation in the Plataforma Social API returns one of these types or a list thereof. Understanding each type’s fields and purpose is essential for building correct client queries and handling API responses.
User
TheUser type represents a registered account. It is returned by getUsers, getUser, postUser, and putUser.
The unique identifier of the user. A UUID generated automatically on account creation.
The user’s unique public-facing handle. Must be unique across all accounts.
The user’s email address. Must be unique across all accounts and is used as the login identifier.
The user’s hashed password. Stored as a bcrypt hash — never the plain-text value. For internal login use only; do not request this field in client queries.
An optional bio or profile description provided by the user. Defaults to an empty string.
A URL pointing to the user’s profile picture. Defaults to an empty string when no avatar has been set.
Setting
TheSetting type holds all per-user privacy and notification preferences. It is a one-to-one companion to User, created automatically at registration with the defaults shown below.
UUID primary key of the settings record.
Foreign key referencing the owner’s
User.id. Unique — each user has exactly one settings row.Controls account visibility. When
true, the user’s profile and posts are hidden from unauthenticated or non-following users. Defaults to false.Enables in-app (desktop) push notifications when a user’s post receives a new rating. Defaults to
true.Enables in-app (desktop) push notifications when a user’s post receives a new comment. Defaults to
true.Enables in-app (desktop) push notifications when someone follows the user. Defaults to
true.Enables in-app (desktop) push notifications for trending or popular content highlights. Defaults to
true.Enables email notifications when a user’s post receives a new rating. Defaults to
true.Enables email notifications when a user’s post receives a new comment. Defaults to
true.Enables email notifications when someone follows the user. Defaults to
true.UserWithSettings
TheUserWithSettings type extends the standard User type with an embedded Setting object. It carries the full user profile together with their notification and privacy preferences in a single response.
This type is only returned by the
login query. All other user-returning operations (getUser, getUsers, etc.) return the plain User type without the nested Setting.UUID of the authenticated user.
The user’s unique public handle.
The user’s email address.
The user’s hashed password. Present for internal session validation; do not expose to clients.
The user’s optional profile bio. Defaults to an empty string.
URL for the user’s profile picture. Defaults to an empty string.
The user’s full notification and privacy settings record, returned inline at login so the client can initialise UI state without a second round-trip.
ResponseID
TheResponseID type is a minimal confirmation envelope returned by destructive mutations that do not need to return the full updated resource.
This type is currently returned by the
deleteUser mutation to confirm which user account was removed.The UUID of the affected resource — in the case of
deleteUser, this is the User.id that was permanently deleted.Full GraphQL SDL
The complete type definitions as declared inserver/src/graphql/typeDefs.ts: