Giter Site home page Giter Site logo

graphql-search-api's Introduction

Graphql Search API

This Drupal module provides an integration between Drupal GraphQL and Search API modules.

Please note this module only supports 3.x version of GraphQL module.

It allows developers to perform queries directly to a Search API index by leveraging the Search API module's API.

Since it uses Search API it's not backend specific and can work with any engine such as Apache Solr or Elastic Search. Check the Development status page to understand where this module is at in terms of development and how you can help make it better.

Why?

This module was designed specifically for decoupled architectures.

For frontend applications that want to leverage search engines like Apache Solr to perform searches, the only current viable approaches are either to use the Views module or write your own little wrapper to expose the search engine's functionality.

While Views has GraphQL support, it puts a lot of constraints in the frontend since it defines in the backend things like filtering, pagination and other things that should in theory belong to the frontend. On the other hand writing your own wrapper means you don't have GraphQL support (unless you extend the schema) and it puts a higher degree of coupling between your app and the search engine.

By using GraphQL Search API you can maintain a single query language across all your frontend consumers, giving them total flexibility and since its not tied to any search backend you could replace the search engine in the future and still maintain the same API.

Main features

This module provides the following features:

  • Perform queries to Search API server backends like Apache Solr or ElasticSearch.
  • Dynamic fields on your GraphQL query based on the fields defined in your Search API indexes.
  • Apache Solr specific query syntax for advanced query options.

Video Tutorial

Video tutorial

More information

graphql-search-api's People

Contributors

carolpettirossi avatar duartegarin avatar el7cosmos avatar joaogarin avatar mdance avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.