Hi guys I need some help, i have model with 15 att...
# orm-help
s
Hi guys I need some help, i have model with 15 attributes, but can i dynamically set the attributes in query. What can i do to make this query dynamically if i want to get only top five attributes or more or less
n
I'm not sure I understood you correctly, but if you want certain fields, just request those fields in the query, e.g.:
Copy code
query {
  getStuff {
    agentId
    agentStatus
    firstName
    team_id
  }
}
s
Is there any solution that i can chose from frontend to get data of selected attributes.
n
That's what GraphQL is for. In your frontend you can request only the fields you want.
s
so can you give an example what should i do in query or how to make dynamic attributes in query
n
See my previous example
s
so should we pass those variables attibutes by kind of parameters
?