Martin Malinda
1 min readAug 14, 2020

--

I haven't had the luck to use GraphQL in a larger project but I believe in that case you can find a lot of specific best practices and conventions.

It seems like there's a new version of vue-apollo that is designed for composition API.

Instead of creating your own useApi hook, you're fine with useQuery, useResult and useMutation.

Perhaps you can create lightweight wrap hooks that use these three hooks underneath and place them in the data folder.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Martin Malinda
Martin Malinda

Written by Martin Malinda

Creative through code. Inspired by nature. Currently building https://powersave.pro

No responses yet

Write a response