Yes, and GraphQL has a business logic built-in to do that. If you use DQL, you have to do it by “hand”.
Use GraphQL.