0 votes
in GraphQL by
What do you understand by Fragment in GraphQL?

1 Answer

0 votes
by

In GraphQL, the fragment is used when the query is very large, and your query contains the reusable units. You can create a fragment by taking the reusable part and use that fragment in the query. The fragment concept was designed to arrange the code in a simple way and avoid duplicate code.

...