The Plataforma Social API exposes three read queries.Documentation 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.
getUsers and getUser are general-purpose queries for fetching user data; login is a specialized query used exclusively by the NextAuth credentials provider to verify credentials during sign-in. All queries are sent as POST requests to /graphql — see the API Overview for request formatting details.
getUsers
[]) when no users exist. No arguments are required.
Return type: [User]
| Field | Type | Description |
|---|---|---|
id | String | UUID of the user |
username | String | Unique display name |
email | String | Email address |
description | String | Optional profile bio |
avatar | String | URL of the profile image |
Example
getUser
The UUID of the user to retrieve. This value is the
id field returned by getUsers, postUser, or any other operation that returns a User.User
Errors:
| Code | Message | Condition |
|---|---|---|
NOT_FOUND (404) | "Not found" | No user exists with the provided id |
Example
login
Setting record. This query is designed to be called from the NextAuth credentials provider authorize callback. It deliberately returns the hashed password field so that NextAuth can verify the supplied plain-text password with bcrypt.
This query is intended for server-side use inside NextAuth’s
authorize function only. Never request the password field from client-side components or expose it in a client-facing query.The email address of the user attempting to sign in. Looked up with an exact, case-sensitive match.
UserWithSettings
| Field | Type | Description |
|---|---|---|
id | String | UUID of the user |
username | String | Unique display name |
email | String | Email address |
password | String | bcrypt-hashed password — for server-side verification only |
description | String | Optional profile bio |
avatar | String | URL of the profile image |
Setting | Setting | The user’s notification and privacy settings |
Setting fields:
| Field | Type | Description |
|---|---|---|
idSettings | String | UUID of the settings record |
idUser | String | UUID of the owning user |
private | Boolean | Whether the profile is private |
n_ratings | Boolean | In-app notifications for ratings |
n_comments | Boolean | In-app notifications for comments |
n_followers | Boolean | In-app notifications for new followers |
n_populates | Boolean | In-app notifications for populates |
n_email_ratings | Boolean | Email notifications for ratings |
n_email_comments | Boolean | Email notifications for comments |
n_email_followers | Boolean | Email notifications for new followers |
| Code | Message | Condition |
|---|---|---|
NOT_FOUND (404) | "El usuario no fue encontrado" | No user exists with the provided email |