refine icon indicating copy to clipboard operation
refine copied to clipboard

[FEAT] nestjs-query support

Open yf-hk opened this issue 3 years ago • 16 comments

Hi, thanks for making such an awesome tool. Is it possbile to also add nestjs-query support? I saw there is nest-crud which is great, but IMHO a GraphQL API has many advantages over REST. It would be great if refine can support both nest-crud and nestjs-query. Many thanks!

yf-hk avatar Feb 15 '22 13:02 yf-hk

Hey @dzcpy , Thanks so much for contacting us! I think it would be great too! Frankly, I don't have any predictions about when we can add it. If you try to do it and you need help, we will be happy to help you. btw, if you haven't been to our Discord yet, we are waiting for you!

omeraplak avatar Feb 15 '22 13:02 omeraplak

I would like to work on this

AyushK-101 avatar Oct 08 '22 21:10 AyushK-101

I would like to work on this

Happy hacking! 🚀

omeraplak avatar Oct 09 '22 02:10 omeraplak

Unassigned @AyushK-101 due to inactivity on this issue. Is there anyone wants to work on this issue? 🙏

aliemir avatar Oct 18 '22 07:10 aliemir

Hey @omeraplak @aliemir, I would like to work on it but I don't have any experience about nestjs-query now. could you please give some info about this feature? how can i start to working on it?

5evki avatar Oct 25 '22 20:10 5evki

Hi @sevkioruc, thank you for your interest. nestjs-query is a back-end library with graphql and crud applications. A data provider needs to be prepared using this project. Strapi graphql would be a good example.

You temporarily run a nestjs-query application locally and integrate it there. Then we will deploy it to the refine subdomain.

yildirayunlu avatar Oct 26 '22 13:10 yildirayunlu

Thank you for clarification @yildirayunlu. I will look these links and start working soon. :)

5evki avatar Oct 26 '22 13:10 5evki

Hey @yildirayunlu, i have two questions. How to test this package behaviour is correct? and which should i use url for unit test?

5evki avatar Oct 31 '22 07:10 5evki

Hey @sevkioruc, first of all, you should test the provider you made manually. For this, create a Post end-point and make sure that the crud operations are working correctly.

Then you have to cover it with unit tests. Use nock library for this.

We will help you prepare the API. We'll deploy and give you a URL. You can open PR.

yildirayunlu avatar Oct 31 '22 08:10 yildirayunlu

Hi @yildirayunlu, I have just started manual testing. I will write tests later, too. Thank you so much!

5evki avatar Oct 31 '22 21:10 5evki

Hey @yildirayunlu, should I create a backend project with nestjs-query for manual testing?

5evki avatar Nov 01 '22 05:11 5evki

Yes @sevkioruc, you have to create a project and perform post crud operations. If you are not experienced with back-end and nestjs I can help with this.

yildirayunlu avatar Nov 01 '22 06:11 yildirayunlu

I haven't used nestjs or nestjs-query before but i use nodejs/express. I will try it but i can ask a question when i encounter any problem. Thank you @yildirayunlu :)

5evki avatar Nov 01 '22 06:11 5evki

Hi @yildirayunlu, this week i am a little bit busy. Is it okay if can i work on backend in the weekend? or is it late?

5evki avatar Nov 03 '22 05:11 5evki

Hey @sevkioruc let's do this if you want. We'll take care of the back-end and give you an api url. You focus on data provider.

yildirayunlu avatar Nov 03 '22 06:11 yildirayunlu

Thank you @yildirayunlu better for me :)

5evki avatar Nov 03 '22 06:11 5evki

Since the nestjs-query project is not actively maintained, we have given up on developing this data provider. But if the community wants to make it, we will provide our best support. Thank you for your understanding

omeraplak avatar Nov 15 '22 06:11 omeraplak

Hey @dzcpy @sevkioruc @AyushK-101 , Good news for today, we have released our @refinedev/nestjs-query package! Release: https://github.com/refinedev/refine/releases/tag/%40refinedev%2Fnestjs-query%401.0.2 Demo: https://example.crm.refine.dev/

omeraplak avatar Sep 12 '23 17:09 omeraplak