• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Global - Search
    • None
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Currently, the GraphQL query feature doesn't support exact matches for component names. Having such a feature can be useful when there many components with similar names being returned by the default GraphQL query.

      One workaround is possible using escape quotes for the query:

      query MyQuery {
        compass {
          searchComponents(
            cloudId: "<your_cloud_id>"
            query: {fieldFilters: {filter: {}, name: ""}, query: "\"<your_component_name>\""}
          ) {
            ... on CompassSearchComponentConnection {
              edges {
                node {
                  component {
                    name
                  }
                }
              }
            }
          }
        }
      }
      

      But this breaks for some special cases such as names containing dashes (i.e. "your-component-name"

            [COMPASS-31] Allow exact search of components via GraphQL

            SET Analytics Bot made changes -
            Support reference count New: 1
            Vinicius made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 928435 ]
            Vinicius made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 956964 ]
            Alastair Wilkes made changes -
            Assignee Original: Josh Campbell [ 05fa5aee2f02 ] New: Katie Silver [ ksilver ]
            Pravin made changes -
            Assignee New: Josh Campbell [ 05fa5aee2f02 ]
            ManuR made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 928435 ]
            Vinicius created issue -

              ksilver Katie Silver
              d94e1e0b3f6f Vinicius
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: