geeksforsocialchange / PlaceCal

Bring your community together
https://placecal.org
GNU Affero General Public License v3.0
17 stars 8 forks source link

[Bug]: Contact information data is not always feeding through to graphql #2474

Closed katjam closed 5 months ago

katjam commented 6 months ago

Description

View contact details on Trans Dimension for Material Grrrlz

There are more notes in the TransDim repo. Don't have time to write out here now, but basically need to chack what data is coming out of the graph QL so we know whether it's a fornt or backend issue

kimadactyl commented 5 months ago

Looks like having blank entries for contact info is erroring out the whole object.

curl -v -X POST -H "Content-Type: application/json" -d '{"query": "query { partner(id: 289) { id summary url contact { name email telephone } } }" }' https://placecal.org/api/v1/graphql

Returns

{"data":{"partner":{"id":"289","summary":"Material Grrrlz is a community of fiber artists dedicated to celebrating the work of young women \u0026 queer people💗","url":"https://www.materialgrrrlz.com/about-us","contact":null}},"errors":[{"message":"Cannot return null for non-nullable field Contact.telephone"}]}%

If you set email to blank it does the same.