Thanks!
So, what you are currently querying is this: https://api-docs.pipefy.com/reference/objects/Card/
And when you look there, you can find the attribute `fields`, that you want to query.
That makes your query look like this:
query {
card(id: 638121829) {
title done id updated_at
fields { name array_value value field { id internal_id type } }
}
}
Note that instead of only “fields”, I also added what values you might want to have of the field: the name of the field, its value, and also the id and its type.
You find out how these parts of the query are called when you click on the “CardField” link in the documentation listed above right next to the attribute “fields” that I hinted at above.
If you now also need to know for each field, what phase it comes from, you have to go even a level deeper: notice the “phase_field” attribute, and therein the attribute “phase”, which will help you separte the fields from the start form from the fields in the other phases in your code.
Therefore, a final query could look like this:
query {
card(id: 638121829) {
title done id updated_at
fields { name array_value value field { id internal_id type }
phase_field { id index_name label phase { id index name } }
}
}
}
(where, again, I made some selection of other attributes you could be interested in. You might find others in the documentation)
In your code, you would then have to filter the card’s fields based on the phase_field → phase → name property to be == “Start form”. Or, if you have another phase you also named “Start form”, you can use the phase_field → phase → index property to be == 0.0.