-
I try to clear/unset properties of a page in a database. let mut props: BTreeMap<String, PageProperty> = BTreeMap::new();
props.insert("meeting date".to_string(), PageProperty::Date { id: None, date: None }); Sending this via /// p is the page retrieved `QueryDatabaseRequest`
let mut r = UpdatePagePropertiesRequestBuilder::default();
r.properties(props);
match r.build() {
Ok(req) => {
let _ = client
.pages
.update_page_properties(&*p.id, req)
.await;
}
Err(e) => {
println!("Error: {:#?}", e);
}
} I get similar results with other property types, so I guess I'm missing something. :) |
Beta Was this translation helpful? Give feedback.
Answered by
takassh
Sep 22, 2024
Replies: 1 comment 1 reply
-
@MerlinDE I have updated the code. Please update your local version to the latest as well! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MerlinDE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@MerlinDE
Hi thank you for opening discussion.
I have investigated this issue and found that we just needed
Option
for theBTreeMap
value.I have updated the code. Please update your local version to the latest as well!