Elide - Opinionated APIs for web & mobile
Tags: showdev, opensource, graphql, java
Published: 2020-06-17 11:19:53

---
title: Elide - Opinionated APIs for web & mobile
published: true
tags: showdev,opensource,graphql,java
description: Elide is a Java library provided by Yahoo! enabling you to stand up a JSON API or GraphQL web service with minimal effort starting from a JPA annotated data model.
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/iwtb79t4tce2m605gxyt.png
canonical_url: https://blog.graphqleditor.com/elide-opinionated-apis/
---

A while ago I wrote about [Super Graph which turns GraphQL queries into a single SQL query](https://blog.graphqleditor.com/super-graph-datafetching-simplified/). Today let's take a look at a very similar Java project called Elide.

## What's Elide

Elide is a Java library provided by [Yahoo!](https://github.com/yahoo) which aims to boost the development velocity of your projects by enabling you to stand up a JSON API or GraphQL web service with minimal effort starting from a JPA annotated data model.

![Elide's logo](https://dev-to-uploads.s3.amazonaws.com/i/3jo6b63ps62trlc4e7qj.png)

Elide allows you to quickly build and deploy production-ready  JSON-API & GraphQL service letting you fetch entire object graphs in a single round trip. It supports multiple data model mutations in a single request in both JSON-API & GraphQL service. Creating objects, setting up relationships as well as updating or deleting, all is handled in a single atomic request. 

- **Production Quality** - build and deploy production-ready web services that expose your data as a service the way you need it.

- **Security** - control access to your data by defining custom rules and annotating your models.

- **Mobile-Friendly** - get only the data you asked for; fetch entire object graphs in a single round trip.

- **Single Atomic Request** - Create objects, set up relationships, update, delete - all together in a single atomic request.

- **Customize** - define custom behaviors for your data model operations, data validation annotations & request lifecycle hooks.


Elide is 100% open source under the commercial-friendly Apache 2.0 License.

## How to use Elide

**1. Define a model** - as mentioned above Elide bases on a JPA annotated data model so our first step it setting it up & including relationships to other models using Java, Kotlin, Groovy or other JVM languages,

**2 Secure** - next step is securing access to our model's fields and entities through a declarative permission syntax,

**3. Expose** - then making instances of your new model accessible through a top-level collection or if you prefer restricted access through relationships to other models,

**4. Deploy & Query** - once all above is done you are good to deploy and query your data with JSON or GraphQL requests.

![How to use Elide](https://dev-to-uploads.s3.amazonaws.com/i/p5ybvwov9eb8xj78vitr.png)
##### Source: [elide.io](https://elide.io/)

If you want to learn more about Elide or thinking about incorporating it to your product make sure the check [Elide's documentation](https://elide.io/pages/guide/01-start.html).

---

## Speed up your GraphQL API development

*GraphQL Editor* is a supportive tool for both advanced GraphQL users as well as those taking their first steps with GraphQL APIs. Our all-in-one development environment for GraphQL will help you build, manage & deploy your GraphQL API much faster. **[Try GraphQL Editor for free!](https://graphqleditor.com)**


[![GraphQL Editor](https://res.cloudinary.com/practicaldev/image/fetch/s--XhJnT9d1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/835ac1nun474qfgn1tfi.gif)](https://graphqleditor.com)