Stun3R / strapi-sdk-js

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

findOne does return different type that expected #197

Open mariomurrent-softwaresolutions opened 10 months ago

mariomurrent-softwaresolutions commented 10 months ago

Bug report

Describe the bug

I'm using the strapi client and the findOne method to find a User. Actually it should return a StrapiResponse which should have {data: ..., meta: ...}

What is returned is just the User object.

Steps to reproduce the behavior

  1. Initialize StrapiClient
  2. use .findOne

Expected behavior

That the correct data structure is returned

System