Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with AdditionalProperties when property and additional properties provided #378

Closed
databyjp opened this issue Jul 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@databyjp
Copy link
Contributor

Problem with AdditionalProperties causes invalid GraphQL query construction when property and additional properties provided.

from weaviate import AdditionalProperties

results = (
    client.query.get("Article", ['title'])
    .with_additional(
        AdditionalProperties(
            vector=True,
            uuid=True,
        )
    )
    .with_limit(2)
    .do()
)

Fails on Weaviate side with the error message:

{'errors': [{'locations': [{'column': 25, 'line': 1}],
   'message': 'Cannot query field "title_additional" on type "Article". Did you mean "_additional"?',
   'path': None}]}
@databyjp databyjp added the bug Something isn't working label Jul 11, 2023
@dirkkul dirkkul closed this as completed Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants