question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtering fields ignored inside fragments

See original GitHub issue

Hello guys,

I’m trying to run this query and it’s completely ignore the ‘employeeType’(or any other) filter:

{
 business(id: "") {
    ...F2
  }
}

fragment F2 on BusinessNode {
  employee(employeeType:":ceo") {
    edges {
      node {
        status
        employeeType
        id
      }
    }
  }
}

On the second hand, this query works perfectly fine:

employee(employeeType:":ceo") {
    edges {
     node {
       status
       employeeType
       id
      }
    }
  }

Both of the objects(BusinessNode and EmployeeNode) are DjangoObjectType.

Thanks, Felix

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
BossGrandcommented, Oct 19, 2016

It doesn’t even need to be a fragment for this to happen. If you run this query on the cookbook example graphiql page you can see the bug. The filter on name is completely ignored

query{
  allCategories {
    edges {
       node {
           id,
           ingredients(name_Icontains:"beef") {
              edges {
                 node {
                    id,
                    name
                 }
              }
           }
        }
     }
  }
}
2reactions
kozickikarolcommented, Oct 13, 2016

Same problem +1

Edit: Sorting nodes inside fragments also does not work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

filter option in list view fragment activity - android
hi friend i want to add search option to list view in fragment activity but i cannot access list view adapter from ...
Read more >
How to Filter/Ignore? : r/EliteMiners - Reddit
You may pick up a few fragments you dont want in the beginning but you can purge those quickly. Begin mining with your...
Read more >
Handling XML Fragments - Rocket Software
XML fragments are pieces of XML-encoded data in the content of elements mapped to Uniface fields. xmlsave and xmlload cannot handle them properly...
Read more >
RFC 1858 - Security Considerations for IP Fragment Filtering
Abstract IP fragmentation can be used to disguise TCP packets from IP filters used in routers and hosts. This document describes two methods...
Read more >
SupportMapFragment XML attributes are ignored when using ...
By swapping FragmentContainerView and fragment in the layout, I can see that with the former, cameraTargetLat , cameraTargetLng and cameraZoom are ignored and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found