Skip to content

REST API vs. GraphQL: Comparison is not fair #99

Open
@stationname

Description

@stationname

To doc compares that GraphQL has only one endpoint while REST API has many. It also states that in GraphQL you can select exactly what items from the database you'd like to have.

However, you can write you REST API the exactly same way: Put everything in one endpoint and let the requestee decide on which items they'd like to receive.
Now you might think that "well, then you need to implement all that logic inside the REST API endpoint.", but this is exactly what you need to do for GraphQL.

If this is a trap in order to find out which of the beginners actually paid attention, then I have nothing to complain. In any other case I think the comparison is not fair.

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