How to write better graphql schemas?

The query with filter

@filter(eq(name, $a))

Works without User.name but loc doesn’t? Also it gives empty array everytime as response when I use User.loc.