Convex Rust Client (None Async) help
Hello, im writing a a web scrapper and i want to save some data to convex. I cant use async rust. So how can i use the convex base client to send some mutation data over to my convex server.
Here is the code. However i have a few errors:
Why does the mutation take this type? Should it not be the key of the function?
3 Replies
the rust client is open source, so you can see what UdfPath is, what it's for, and how to make one https://github.com/get-convex/convex-rs/blob/main/sync_types/src/udf_path.rs
GitHub
convex-rs/sync_types/src/udf_path.rs at main · get-convex/convex-rs
Rust client library for Convex. Contribute to get-convex/convex-rs development by creating an account on GitHub.
tl;dr it's a struct that has some methods for converting
"foo"
into "foo:default"
, checking if the path starts with _system
, and a few more things.
and you can make one with MUTATION_QUERY_KEY.parse().unwrap()
oh i see thank you
oh i did not see i needed to install the
convex_sync_types
crate
okay i got it working, took a little to play around with the convex types. also just to make things easier i moved to the async client lol
but i forgot that v.number
is f64 so i had to rework a lot of my u32 types but thanks for the help