GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — How to Query on Global Secondary Index? · Issue #50 · totemstech/node-dynamodb

How to Query on Global Secondary Index? #50

New issue
Copy link
New issue
Copy link
Open
Open
How to Query on Global Secondary Index?#50
Copy link

Description

@chantii
chantii
opened on Nov 23, 2014
Issue body actions

Hi, Along with primary hash key I also created a Global secondary hash key, how can I query using node-dynamodb?

Activity

  1. nijo108 commented on Apr 21, 2015

    @nijo108
    nijo108
    on Apr 21, 2015
    More actions

    same ? here doesn't seem to work for me when I use indexName option

  2. yeshodhan commented on Jun 12, 2015

    @yeshodhan
    yeshodhan
    on Jun 12, 2015
    More actions

    Could you provide an example?

  3. christopheretcheverry commented on Jun 25, 2015

    @christopheretcheverry
    christopheretcheverry
    on Jun 25, 2015
    More actions

    Hey, is there any resolution on this yet? I'm finding that when you use indexName it still queries on the table hash key and not the index hash key.

  4. christopheretcheverry commented on Jun 26, 2015

    @christopheretcheverry
    christopheretcheverry
    on Jun 26, 2015
    More actions

    Here is a temporary fix. You have to upgrade to a newer version of dynamo for this to work. I'm working on a pull request.

    This will break the "HashKeyElement" as it was changed to "Key" so be careful! I've included details on how to fix that also.

    https://gist.github.com/christopheretcheverry/bff4f26ea365c7487f33

    Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.