Giter VIP home page Giter VIP logo

Comments (1)

trevor-scheer avatar trevor-scheer commented on August 28, 2024

@iam1me sorry about the docs discrepancy, we did some major version work on main so they were out of sync. We just released v5 of the @apollo/datasource-rest package yesterday (which made the fetch method public) so you should be able to use that now and the docs are all up-to-date (both in the README here and on our docs site).

I think what you're looking for is how to set status codes from your resolvers, which is an Apollo Server problem more than it is a data source problem. Let me know if this is what you're looking for.
https://www.apollographql.com/docs/apollo-server/data/errors#setting-http-status-code-and-headers

I'm going to close this issue since I think it's not a data source concern, but happy to continue to triage with you here and re-open if we establish a different understanding of the issue that makes it a data source problem.

from datasource-rest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.