def METHOD_NAME(
    staff_api_client,
    permission_manage_orders,
    order_with_lines_and_events,
    count_queries,
):
    query = (
        FRAGMENT_STAFF_ORDER_DETAILS
        + """
          query Order($id: ID!) {
            order(id: $id) {
              ...OrderStaffDetail
            }
          }
        """
    )
    variables = {
        "id": graphene.Node.to_global_id("Order", order_with_lines_and_events.id),
    }
    staff_api_client.user.user_permissions.add(permission_manage_orders)
    get_graphql_content(staff_api_client.post_graphql(query, variables))