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

fetch_users() query complexity exceeds max complexity #57

Open
staylorx opened this issue May 2, 2022 · 1 comment
Open

fetch_users() query complexity exceeds max complexity #57

staylorx opened this issue May 2, 2022 · 1 comment

Comments

@staylorx
Copy link

staylorx commented May 2, 2022

Using the Monday v1.2.9 and running the following,

from monday import MondayClient
conn = MondayClient(MY_MONDAY_KEY)
users = conn.users.fetch_users()

the users variable is:

{'errors': [{'message': 'Query has complexity of 200140010, which exceeds max complexity of 5000000'}],
 'account_id': 10368903}

This was working before the weekend. I have every expectation that mdc changed something. Thanks for your help.

@staylorx
Copy link
Author

staylorx commented May 2, 2022

I've verified that leaving the teams field off works without error (but of course doesn't help if I need teams info!):

from monday.resources.base import BaseResource
from monday.query_joins import get_users_query

query = """query
    {
        users () {
            id
            name
            email
            enabled
        }
    }"""
query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant