Skip to content

Support Env Variables in Remote Schema URL #328

Open
@PvtPuddles

Description

@PvtPuddles

Hello. I would like to parameterize my remote_schema_url with environment variables (similar to remote_schema_headers), but it doesn't appear possible.

My use case is that our organization has several development systems and multiple production systems, and we typically switch between them using our .env files.

Ex:
.env

# REMOTE_SERVER="https://MyDomain.com"
REMOTE_SERVER="https://dev.MyDomain.com"

pyproject.toml

[tool.ariadne-codegen]
remote_schema_url = "${REMOTE_SERVER}/graphql"
remote_schema_headers = {"Authorization" = "$REMOTE_AUTHORIZATION"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions