Long query extraction


I have this code as my query :

export const query = graphqlquery cockpitHe { allCockpitHello { edges { node { Name { value } } } } }

and the output for me is pretty complicated


and this is really long and I am pretty sure there should be an easier way to use my data, I mean the whole point of using graphql is its simplicity.

can you please correct me ?