beerman
CCConvex Community
•Created by beerman on 10/5/2024 in #support-community
a little confused about getManyVia
Hey all, I have a table
features
which stores different feature options and joiner table property_features
which connects the features to properties and has an additional details
field for property specific information per feature.
I'm trying to get all the property features (name, as well as the details), so I thought that getManyVia would be the best option to use, but I'm only getting the names but not the details. Have I misunderstood how this works?
extract from schema
query
2 replies
CCConvex Community
•Created by beerman on 10/3/2024 in #support-community
unable to query relation with getOneFrom helper
4 replies
CCConvex Community
•Created by beerman on 10/1/2024 in #support-community
struggling with mutation
I'm trying to infer a type from my schema in order to type locationData which I will pass to the mutation but I keep getting the following error:
src/convex/addCompleteProperty.ts|7 col 23-62 error| Type 'TableDefinition<VObject<{ district?: string | undefined; city?: string | undefined; area?: string | undefined; postal_code?: string | undefined; nearest_landmark?: string | undefined; latitude?: number | undefined; longitude?: number | undefined; country: string; province: string; address: string; }, { ...; }, "requ...' does not satisfy the constraint 'Validator<any, OptionalProperty, any>'.Here's the relevant section of my schema Where did I go wrong?
238 replies