Support Smart Date

Created on 27 February 2025, about 2 months ago

Problem/Motivation

I'm building a project using Drupal CMS, which uses Smart Date β†’ for date fields. But my Smart Date field doesn't show up in the GraphQL Compose schema.

Steps to reproduce

  1. Start a new Drupal CMS project or create a Smart Date field on a content type on an existing project
  2. Go to /admin/config/graphql_compose

Proposed resolution

This suggestion should be credited to apmsooner β†’ who helped me on this in the #graphql channel on Slack:

It should just be 2 files needed.
Address module is a similarly good example.
For schema: Create a new schema type (e.g. SmartDateType - plugin id = SmartDate)
https://git.drupalcode.org/project/graphql_compose/-/blob/2.4.x/src/Plug...
For field type: Create a new field type (e.g. SmartDateItem - plugin id = smartdate, type_sdl = SmartDate )
https://git.drupalcode.org/project/graphql_compose/-/blob/2.4.x/src/Plug...

✨ Feature request
Status

Active

Version

2.4

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden persand Stockholm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024