Out of the box faunadb functions not working

Hey everyone, I’m trying to set up faunadb with netlify so that I can have a few click solution to setting up an end to end Progressive web app for protestors, but I’m having an issue with getting faunadb to work out of the box using netlify function:create and choosing fauna crud. Currently I am trying to hit endpoint /.netlify/functions/post/read within my functions/post/read-all.js file, but whenever trying to hit any of the endpoints I receive the error

error [BadRequest: invalid expression] {
  name: 'BadRequest',
  message: 'invalid expression',
  description: 'Invalid ref.',
  requestResult: RequestResult {
    method: 'POST',
    path: '',
    query: null,
    requestRaw: '{"get":{"@ref":"classes/items/read-all"}}',
    requestContent: Expr { raw: [Object] },
    responseRaw: '{"errors":[{"position":["get"],"code":"invalid expression","description":"Invalid ref."}]}',
    responseContent: { errors: [Array] },
    statusCode: 400,
    responseHeaders: {
      connection: 'keep-alive',
      'content-length': '90',
      'content-type': 'application/json;charset=utf-8',
      date: 'Wed, 03 Jun 2020 21:45:42 GMT',
      traceparent: '00-00000000000000000000000000000000-0000000000000000-00',
      'x-compute-ops': '0',
      'x-faunadb-build': '20.05.00.rc3-d9f0d4a',
      'x-query-bytes-in': '41',
      'x-query-bytes-out': '90',
      'x-query-time': '9',
      'x-read-ops': '0',
      'x-storage-bytes-read': '0',
      'x-storage-bytes-write': '0',
      'x-txn-retries': '0',
      'x-txn-time': '1591220742858066',
      'x-write-ops': '0'
    startTime: 1591220742777,
    endTime: 1591220743003

would someone be able to help me? I thought it would work out of the box.

This issue has been fixed. Rather than trying to hit /.netlify/functions/post/read-all you’re supposed to hit endpoint /.netlify/functions/post.

Hi, @brandonin, thank you for taking the time to post the solution you found here. This will hopefully be of benefit for someone else experiencing the same issue and searching for a solution in the future.

Thanks again for contributing. If there are other questions about Netlify in the future, please feel free to create a new topic for them.