Skip to content

Mock graphql API #31825

Open
Open
@vidyli

Description

@vidyli

Hi, I want to implement a feature like graphql-faker, so that our devloper can mock API response more easier. any advice would be appreciated.

type Customer  {
    firstname: String @doc(description: "The customer's first name") @fake("firstName")
}

Why

  1. This feature is userful for decopling the frontend and backend developer, as long as they have some basic understandings, they can develop separately at the same time.

What I investigated

  1. fzaninotto/Faker
    this repo can generate fake data for php, although it is abadoned, it is good for this case.

  2. Implement a fake directive like the resolver directive.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Grooming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions