#community-help

Change in Handling `id` in Schema from Version v0.22.0

TLDR Ignacio asked about a recent change. Jason clarified that from version v0.22.0, 'id' is ignored in the schema, suggesting to use 'filter_by' instead.

Powered by Struct AI

1

3
23mo
Solved
Join the chat
Dec 22, 2021 (23 months ago)
Ignacio
Photo of md5-f7965ddb4eec1a7d3abd4f89eb705965
Ignacio
09:49 PM
Was there a change around it?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
09:51 PM
Yeah, id is a special field since it has to be a string and from v0.22.0 if it's present in the schema it's just ignored. You would have to use filter_by to get a document by id instead of q
Ignacio
Photo of md5-f7965ddb4eec1a7d3abd4f89eb705965
Ignacio
09:51 PM
thanks.

1