holepunchto / holepunchto/hyperdb

Missing `date` support

Open
#53 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
76
Forks
13
Avg merge
1h 26m
Merged PRs (30d)
2

Description

My schema looks like this:

{
  name: "date",
  type: "date",
  required: true,
}

It generates an invalid encoder:

const collection0_key = new IndexEncoder([
  undefined
], { prefix: 0 })

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the schema with a required date field and trace where it generates the IndexEncoder definition containing undefined. The issue names no source file or test, so first locate the schema-to-encoder entry point and its existing type handling. Done means date fields generate a valid encoder and the reproduction no longer produces undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.