Skip to content

/users/me endpoint is missing many-to-many relation objects in the response #10229

@raspi0124

Description

@raspi0124

Bug report

Describe the bug

/users/me endpoint is returning a response missing many-to-many relation objects while /users/_id returns a expected response which includes many-to-many relation objects.

Steps to reproduce the behavior

  1. Create many-to-many relation on Users model
  2. Add some random entries and relate them to the user
  3. Send API requests to /users/me and /users/_id using the user's jwt token

Expected behavior

/users/me and /users/_id returns exactly same value, both including many-to-many relation objects.

System

  • Node.js version: v14.15.1
  • NPM version: 7.5.2
  • Strapi version: v3.5.4
  • Database: Reproduced on both MySQL/SQLite
  • Operating system: Reproduced on both Windows and Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions