Stun3R / strapi-sdk-js

📦 Javascript SDK for your Strapi API
https://strapi-sdk-js.netlify.app
MIT License
143 stars 27 forks source link

Add the same option object as find/findOne to the fetchUser() method #195

Open christher-lenander opened 11 months ago

christher-lenander commented 11 months ago

Feature request

Summary

Add the same option object as find or findOne so you can populate relations in the user collection.

Why is it needed?

To eliminate the need to use custom query through strapi.axios to get role and other relations to user collection.

Suggested solution(s)

I want to be able to get the relation data related to usser in a simpler way than today.

sample query: api/users/me?populate=* to get all the related data that is relatet to the loged in user.

Related issue(s)/PR(s)

No related issue.

Stun3R commented 3 days ago

Hey 👋🏼 I will work on it in the following weeks and it could be publish in less than 2 weeks