How to get data instead of [object Promise]

I am new in Velo. I read a lot of post regarding the usage of promise and I understand it. But when you received [object Promise] instead of data. Not sure how I can get them.

To get data instead of a β†’ PROMISE ← use either β†’ ASYNC+AWAIT ← or β†’ .then() <β€”

But when you received [object Promise] instead of data. Not sure how I can get them.

If you get a PROMISE instead of an OBJECT or other RESULT-FORMATS β†’ then you have done something wrong in your code.

The ERROR will be, that you did not β†’ AWAIT <β€” the results!

Thanks it’s help. I am a step further in my debugging

@youge Do not forget to like it, if you realy liked it :wink:

1 Like