• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Global - Search
    • None
    • 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

            There are no comments yet on this issue.

              ksilver Katie Silver
              d94e1e0b3f6f Vinicius
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: