This project is not covered by Drupal’s security advisory policy.

Project Status: Unsupported

This is a small module designed to work with the Drupal File field type. It provides a GraphQL field type that can be used to return a File object.

Obsolete Notice

This module is now considered obsolete and is no longer maintained.

We strongly recommend that users migrate to alternative solutions as this module will not receive any updates or support. Below are some recommended alternatives:

Quickstart:

  1. Install the module using Composer.
  2. Enable the "GraphQL File" SchemaExtension on your graphQL server edit page.
  3. Include the field on the relevant Type to resolve as: File
  4. Install the module using Composer.

Requirements

GraphQL 4.X

Usage

This module provides a GraphQL field type that can be used like this:

type MyType {
  documents: [File]
}

The field will return a File object with the following properties:

* id: The file entity id
* title: The file entity name
* url: The file entity url

Supporting organizations: 
Development Time

Project information

Releases